Skip to content

Commit 542682f

Browse files
committed
reduce non-essential
1 parent 265101c commit 542682f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pgduckdb_duckdb.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ void
9595
DuckDBManager::Initialize() {
9696
elog(DEBUG2, "(PGDuckDB/DuckDBManager) Creating DuckDB instance");
9797

98+
// Block signals before initializing DuckDB to ensure signal is handled by the Postgres main thread only
99+
pgduckdb::ThreadSignalBlockGuard guard;
100+
98101
// Make sure directories provided in config exists
99102
std::filesystem::create_directories(duckdb_temp_directory);
100103
std::filesystem::create_directories(duckdb_extension_directory);

0 commit comments

Comments
 (0)