postgresql/src/bin
Tom Lane 03ac485494 pg_dump: avoid unsafe function calls in getPolicies().
getPolicies() had the same disease I fixed in other places in
commit e3fcbbd62, i.e., it was calling pg_get_expr() for
expressions on tables that we don't necessarily have lock on.
To fix, restrict the query to only collect interesting rows,
rather than doing the filtering on the client side.

Back-patch of commit 3e6e86abc.  That's been in v15/HEAD long enough
to have some confidence about it, so now let's fix the problem in
older branches.

Discussion: https://postgr.es/m/2273648.1634764485@sss.pgh.pa.us
Discussion: https://postgr.es/m/7d7eb6128f40401d81b3b7a898b6b4de@W2012-02.nidsa.loc
Discussion: https://postgr.es/m/45c93d57-9973-248e-d2df-e02ca9af48d4@darold.net
2022-11-19 12:00:27 -05:00
..
initdb Translation updates 2022-11-07 13:59:56 +01:00
pg_amcheck Translation updates 2022-11-07 13:59:56 +01:00
pg_archivecleanup Translation updates 2022-11-07 13:59:56 +01:00
pg_basebackup Translation updates 2022-11-07 13:59:56 +01:00
pg_checksums Translation updates 2022-11-07 13:59:56 +01:00
pg_config Translation updates 2022-08-08 12:39:52 +02:00
pg_controldata Translation updates 2022-11-07 13:59:56 +01:00
pg_ctl Translation updates 2022-11-07 13:59:56 +01:00
pg_dump pg_dump: avoid unsafe function calls in getPolicies(). 2022-11-19 12:00:27 -05:00
pg_resetwal Translation updates 2022-11-07 13:59:56 +01:00
pg_rewind Translation updates 2022-11-07 13:59:56 +01:00
pg_test_fsync Translation updates 2022-11-07 13:59:56 +01:00
pg_test_timing Translation updates 2022-08-08 12:39:52 +02:00
pg_upgrade Translation updates 2022-11-07 13:59:56 +01:00
pg_verifybackup Translation updates 2022-11-07 13:59:56 +01:00
pg_waldump Translation updates 2022-11-07 13:59:56 +01:00
pgbench Suppress variable-set-but-not-used warnings from clang 15. 2022-09-20 12:04:37 -04:00
pgevent Update copyright for 2021 2021-01-02 13:06:25 -05:00
psql Translation updates 2022-11-07 13:59:56 +01:00
scripts Translation updates 2022-11-07 13:59:56 +01:00
Makefile Add pg_amcheck, a CLI for contrib/amcheck. 2021-03-12 13:00:01 -05:00