Skip to content

Commit c0b5970

Browse files
authored
Change plrust.allowed_dependencies to sighup context (#362)
1 parent 6bf6b3a commit c0b5970

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/src/dependencies.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,6 @@ $$;
145145
### Operational Notes
146146

147147
- The dependency allow-list file path must be set in `plrust.allowed_dependencies` GUC value in `postgresql.conf`.
148+
- Changing the GUC value requires a configuration reload on the database to take effect.
148149
- The file must be readable by the user that runs Postgres backend connections. Typically, this user is named `postgres`.
149150
- Every time a `CREATE FUNCTION ... LANGUAGE plrust` statement is executed, the file is read, parsed, and validated. This arrangement allows administrators to edit it without needing to restart the Postgres cluster.

plrust/src/gucs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub(crate) fn init() {
6666
"The full path of a toml file containing crates and versions allowed when creating PL/Rust functions",
6767
"The full path of a toml file containing crates and versions allowed when creating PL/Rust functions",
6868
&PLRUST_ALLOWED_DEPENDENCIES,
69-
GucContext::Postmaster,
69+
GucContext::Sighup,
7070
GucFlags::default(),
7171
);
7272

0 commit comments

Comments
 (0)