postgresql/src
Tom Lane a60860ff33 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
..
backend Fix lookup error in extended stats ownership check 2021-08-31 18:42:11 +02:00
bin In pg_dump, avoid doing per-table queries for RLS policies. 2021-08-31 15:04:05 -04:00
common
fe_utils
include Fix toast rewrites in logical decoding. 2021-08-25 09:43:33 +05:30
interfaces Set type identifier on BIO 2021-08-17 14:30:39 +02:00
makefiles
pl Fix corner-case uninitialized-variable issues in plpgsql. 2021-07-20 13:01:48 -04:00
port Stamp 11.13. 2021-08-09 16:52:43 -04:00
template
test Rename the role in stats_ext to have regress_ prefix 2021-08-31 19:42:14 +02:00
timezone
tools
tutorial
.gitignore
DEVELOPERS
Makefile
Makefile.global.in
Makefile.shlib
nls-global.mk