aboutsummaryrefslogtreecommitdiff
path: root/src/backend/regex/regexec.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-08-31 15:04:05 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2021-08-31 15:04:05 -0400
commita60860ff33fbd41685943e1c59a199fe95ee96bd (patch)
tree98a5b8bc72933aac4ff3ceaa9043a50a20949f12 /src/backend/regex/regexec.c
parentc4b298ee15aa67a953e65c8efa1a33eeea721446 (diff)
downloadpostgresql-a60860ff33fbd41685943e1c59a199fe95ee96bd.tar.gz
postgresql-a60860ff33fbd41685943e1c59a199fe95ee96bd.zip
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
Diffstat (limited to 'src/backend/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions