Skip to content

Commit

Permalink
Change plrust.allowed_dependencies to sighup context (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
anth0nyleung authored Jul 21, 2023
1 parent 6bf6b3a commit c0b5970
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/src/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,6 @@ $$;
### Operational Notes

- The dependency allow-list file path must be set in `plrust.allowed_dependencies` GUC value in `postgresql.conf`.
- Changing the GUC value requires a configuration reload on the database to take effect.
- The file must be readable by the user that runs Postgres backend connections. Typically, this user is named `postgres`.
- 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.
2 changes: 1 addition & 1 deletion plrust/src/gucs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub(crate) fn init() {
"The full path of a toml file containing crates and versions allowed when creating PL/Rust functions",
"The full path of a toml file containing crates and versions allowed when creating PL/Rust functions",
&PLRUST_ALLOWED_DEPENDENCIES,
GucContext::Postmaster,
GucContext::Sighup,
GucFlags::default(),
);

Expand Down

0 comments on commit c0b5970

Please sign in to comment.