Skip to content

Commit

Permalink
Only allow duckdb.motherduck_postgres_database in postgresql.conf (#476)
Browse files Browse the repository at this point in the history
This was always the intention, as we currently don't allow switching the
database without restarting postgres. But we forgot to set the correct
GUC flags.
  • Loading branch information
JelteF authored Dec 4, 2024
1 parent dff3a16 commit 0b400af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Which database to enable MotherDuck support in

Default: `"postgres"`

Access: General
Access: Needs to be in the `postgresql.conf` file and requires a restart

### `duckdb.motherduck_default_database`

Expand Down
2 changes: 1 addition & 1 deletion src/pgduckdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ DuckdbInitGUC(void) {
PGC_POSTMASTER, GUC_SUPERUSER_ONLY);

DefineCustomVariable("duckdb.motherduck_postgres_database", "Which database to enable MotherDuck support in",
&duckdb_motherduck_postgres_database);
&duckdb_motherduck_postgres_database, PGC_POSTMASTER, GUC_SUPERUSER_ONLY);

DefineCustomVariable("duckdb.motherduck_default_database",
"Which database in MotherDuck to designate as default (in place of my_db)",
Expand Down

0 comments on commit 0b400af

Please sign in to comment.