pgcentralfoundation / pgrx

Build Postgres Extensions with Rust!
Other
3.71k stars 249 forks source link

docs: align description of GucContext::SuBackend and GucContext::Backend with original PostgreSQL description #1909

Closed mrl5 closed 1 month ago

mrl5 commented 1 month ago

Current GucContext::Backend description applies to GucContext::SuBackend.

ref https://doxygen.postgresql.org/guc_8h_source.html#l00053

  • BACKEND and SU_BACKEND options can only be set at postmaster startup,
  • from the configuration file, or by client request in the connection
  • startup packet (e.g., from libpq's PGOPTIONS variable). SU_BACKEND
  • options can be set from the startup packet only when the user is a
  • superuser. Furthermore, an already-started backend will ignore changes
  • to such an option in the configuration file. The idea is that these
  • options are fixed for a given backend once it's started, but they can
  • vary across backends.
workingjubilee commented 1 month ago

This looks correct? but Eric is much more familiar with the GUCs so I'm deferring to him on this one.