diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2022-07-25 15:45:24 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2022-07-25 15:45:24 -0400 |
commit | e1bd4990b2b599b2de7ae531516660c86fbb910b (patch) | |
tree | 4208e0d1ef0d72af35f3da0178731a10e81d5a92 /src/backend/tcop/postgres.c | |
parent | 31ed3cf746a61538876c66a778ec8a372a3b4ffb (diff) | |
download | postgresql-e1bd4990b2b599b2de7ae531516660c86fbb910b.tar.gz postgresql-e1bd4990b2b599b2de7ae531516660c86fbb910b.zip |
Add test for session_preload_libraries and parameter permissions checks.
We weren't exercising the session_preload_libraries option in any
meaningful way. auto_explain is a good testbed for doing so, since
it's one of the primary use-cases for session_preload_libraries.
Hence, adjust its TAP test to load the library via
session_preload_libraries not shared_preload_libraries. While at it,
feed test-specific settings to the backend via PGOPTIONS rather than
tediously rewriting postgresql.conf.
Also, since auto_explain has some PGC_SUSET parameters, we can use it
to provide a test case for the permissions-checking bug just fixed
by commit b35617de3.
Back-patch to v15 so that we have coverage for the permissions issue
in that branch too. To do that, I back-patched the refactoring
recently done by commit 550bc0a6c.
Dagfinn Ilmari Mannsåker and Tom Lane
Discussion: https://postgr.es/m/CABwTF4VEpwTHhRQ+q5MiC5ucngN-whN-PdcKeufX7eLSoAfbZA@mail.gmail.com
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions