aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2020-01-31 00:46:20 +0900
committerFujii Masao <fujii@postgresql.org>2020-01-31 00:46:20 +0900
commit606f350de92a15fdb2c6a3c209f60cf74d2825e7 (patch)
treeef43924a6c71e5abe5768ef3037c5ce2b77b9a31 /src/backend/access/gist/gistget.c
parent0e63d9641bad3f50f91ee8e351051bddabac8d31 (diff)
downloadpostgresql-606f350de92a15fdb2c6a3c209f60cf74d2825e7.tar.gz
postgresql-606f350de92a15fdb2c6a3c209f60cf74d2825e7.zip
Make inherited TRUNCATE perform access permission checks on parent table only.
Previously, TRUNCATE command through a parent table checked the permissions on not only the parent table but also the children tables inherited from it. This was a bug and inherited queries should perform access permission checks on the parent table only. This commit fixes that bug. Back-patch to all supported branches. Author: Amit Langote Reviewed-by: Fujii Masao Discussion: https://postgr.es/m/CAHGQGwFHdSvifhJE+-GSNqUHSfbiKxaeQQ7HGcYz6SC2n_oDcg@mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions