Skip to content

Commit

Permalink
Add the same GUC aliases that DuckDB has (#315)
Browse files Browse the repository at this point in the history
Some of the DuckDB settings that we support can be changed using two
names in DuckDB. This starts to support both of them.
  • Loading branch information
JelteF authored Oct 18, 2024
1 parent e0bcc3d commit aeca4be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pgduckdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,19 @@ DuckdbInitGUC(void) {

DefineCustomVariable("duckdb.max_memory", "The maximum memory DuckDB can use (e.g., 1GB)", &duckdb_maximum_memory,
PGC_SUSET);
DefineCustomVariable("duckdb.memory_limit",
"The maximum memory DuckDB can use (e.g., 1GB), alias for duckdb.max_memory",
&duckdb_maximum_memory, PGC_SUSET);

DefineCustomVariable("duckdb.disabled_filesystems",
"Disable specific file systems preventing access (e.g., LocalFileSystem)",
&duckdb_disabled_filesystems, PGC_SUSET);

DefineCustomVariable("duckdb.threads", "Maximum number of DuckDB threads per Postgres backend.",
&duckdb_maximum_threads, -1, 1024, PGC_SUSET);
DefineCustomVariable("duckdb.worker_threads",
"Maximum number of DuckDB threads per Postgres backend, alias for duckdb.threads",
&duckdb_maximum_threads, -1, 1024, PGC_SUSET);

DefineCustomVariable("duckdb.max_threads_per_query",
"Maximum number of DuckDB threads used for a single Postgres scan",
Expand Down

0 comments on commit aeca4be

Please sign in to comment.