summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistproc.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-10-04 16:13:16 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-10-04 16:13:50 -0400
commit9f5836d224e876399dfdd7d6d4343300dbc2f664 (patch)
treea0dd0059e615f56af1bdc969399aff085160732c /src/backend/access/gist/gistproc.c
parent09e196e4539a70c51e828abcfe48dee3efd312d8 (diff)
downloadpostgresql-9f5836d224e876399dfdd7d6d4343300dbc2f664.tar.gz
Remember the source GucContext for each GUC parameter.
We used to just remember the GucSource, but saving GucContext too provides a little more information --- notably, whether a SET was done by a superuser or regular user. This allows us to rip out the fairly dodgy code that define_custom_variable used to use to try to infer the context to re-install a pre-existing setting with. In particular, it now works for a superuser to SET a extension's SUSET custom variable before loading the associated extension, because GUC can remember whether the SET was done as a superuser or not. The plperl regression tests contain an example where this is useful.
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions