aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/functioncmds.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2020-01-31 00:42:06 +0900
committerFujii Masao <fujii@postgresql.org>2020-01-31 00:42:06 +0900
commite6f1e560e4c6e764080af8c8d5e76cdea4d8d00a (patch)
treea2037ccf960060e656648e0a6a4dd49eb4a15276 /src/backend/commands/functioncmds.c
parentb0afdcad21fde1470e6502a376bfaf0e10d384fa (diff)
downloadpostgresql-e6f1e560e4c6e764080af8c8d5e76cdea4d8d00a.tar.gz
postgresql-e6f1e560e4c6e764080af8c8d5e76cdea4d8d00a.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/commands/functioncmds.c')
0 files changed, 0 insertions, 0 deletions