aboutsummaryrefslogtreecommitdiff
path: root/src/common/jsonapi.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2020-02-18 13:13:15 +0900
committerFujii Masao <fujii@postgresql.org>2020-02-18 13:13:15 +0900
commitb7e51b350c4e6b1cb3404588cf11801525e2336f (patch)
treee87519c47dc0b7db46751f3aa7cb079c61024fa1 /src/common/jsonapi.c
parent958f9fb98da97a1d781a3766ea86bcdba3b216c5 (diff)
downloadpostgresql-b7e51b350c4e6b1cb3404588cf11801525e2336f.tar.gz
postgresql-b7e51b350c4e6b1cb3404588cf11801525e2336f.zip
Make inherited LOCK TABLE perform access permission checks on parent table only.
Previously, LOCK TABLE 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 LOCK TABLE so that it does not check the permission on children tables. This patch is applied only in the master branch. We decided not to back-patch because it's not hard to imagine that there are some applications expecting the old behavior and the change breaks their security. Author: Amit Langote Reviewed-by: Fujii Masao Discussion: https://postgr.es/m/CAHGQGwE+GauyG7POtRfRwwthAGwTjPQYdFHR97+LzA4RHGnJxA@mail.gmail.com
Diffstat (limited to 'src/common/jsonapi.c')
0 files changed, 0 insertions, 0 deletions