postgresql/src/bin
Tom Lane a20a9f26ce In pg_dump, avoid doing per-table queries for RLS policies.
For no particularly good reason, getPolicies() queried pg_policy
separately for each table.  We can collect all the policies in
a single query instead, and attach them to the correct TableInfo
objects using findTableByOid() lookups.  On the regression
database, this reduces the number of queries substantially, and
provides a visible savings even when running against a local
server.

Per complaint from Hubert Depesz Lubaczewski.  Since this is such
a simple fix and can have a visible performance benefit, back-patch
to all supported branches.

Discussion: https://postgr.es/m/20210826084430.GA26282@depesz.com
2021-08-31 15:04:05 -04:00
..
initdb Translation updates 2021-08-09 11:51:59 +02:00
pg_amcheck Remove --quiet option from pg_amcheck 2021-08-20 12:44:54 +02:00
pg_archivecleanup Translation updates 2021-08-09 11:51:59 +02:00
pg_basebackup Translation updates 2021-08-09 11:51:59 +02:00
pg_checksums Translation updates 2021-08-09 11:51:59 +02:00
pg_config Translation updates 2021-08-09 11:51:59 +02:00
pg_controldata Translation updates 2021-08-09 11:51:59 +02:00
pg_ctl Translation updates 2021-08-09 11:51:59 +02:00
pg_dump In pg_dump, avoid doing per-table queries for RLS policies. 2021-08-31 15:04:05 -04:00
pg_resetwal Translation updates 2021-08-09 11:51:59 +02:00
pg_rewind Translation updates 2021-08-09 11:51:59 +02:00
pg_test_fsync Translation updates 2021-08-09 11:51:59 +02:00
pg_test_timing Translation updates 2021-08-09 11:51:59 +02:00
pg_upgrade Translation updates 2021-08-09 11:51:59 +02:00
pg_verifybackup Fix backup manifests to generate correct WAL-Ranges across timelines 2021-08-23 11:09:54 +09:00
pg_waldump Translation updates 2021-08-09 11:51:59 +02:00
pgbench pgbench: Avoid unnecessary measurement of connection delays. 2021-08-30 21:37:43 +09:00
pgevent Update copyright for 2021 2021-01-02 13:06:25 -05:00
psql psql: Fix name quoting on extended statistics 2021-08-30 14:01:29 -04:00
scripts Translation updates 2021-08-09 11:51:59 +02:00
Makefile Add pg_amcheck, a CLI for contrib/amcheck. 2021-03-12 13:00:01 -05:00