postgresql/src/bin
Tom Lane db11b4a3db 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 Work around portability issue with newer versions of mktime(). 2021-06-13 14:32:42 -04:00
pg_archivecleanup Translation updates 2021-05-10 14:32:18 +02:00
pg_basebackup Fix a couple of memory leaks in src/bin/pg_basebackup/ 2021-07-26 11:14:11 +09:00
pg_checksums Translation updates 2021-08-09 11:56:40 +02:00
pg_config Translation updates 2021-05-10 14:32:18 +02:00
pg_controldata Translation updates 2021-05-10 14:32:18 +02:00
pg_ctl Translation updates 2021-05-10 14:32:18 +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:56:40 +02:00
pg_rewind Translation updates 2021-08-09 11:56:40 +02:00
pg_test_fsync Translation updates 2021-05-10 14:32:18 +02:00
pg_test_timing Translation updates 2021-05-10 14:32:18 +02:00
pg_upgrade Translation updates 2021-08-09 11:56:40 +02:00
pg_verifybackup Fix backup manifests to generate correct WAL-Ranges across timelines 2021-08-23 11:09:57 +09:00
pg_waldump pg_waldump: Fix bug in per-record statistics. 2021-03-23 09:54:38 +09:00
pgbench Don't depend on -fwrapv semantics in pgbench's random() function. 2021-06-28 12:40:37 -04:00
pgevent Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
psql psql \dP: reference regclass with "pg_catalog." prefix 2021-08-28 11:45:47 -04:00
scripts Translation updates 2021-08-09 11:56:40 +02:00
Makefile Rename pg_validatebackup to pg_verifybackup. 2020-04-12 11:26:05 -04:00