postgresql/src/backend
Fujii Masao e6f1e560e4 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
2020-01-31 00:42:06 +09:00
..
access Fail if recovery target is not reached 2020-01-29 15:58:14 +01:00
bootstrap Update copyrights for 2020 2020-01-01 12:21:45 -05:00
catalog Invent "trusted" extensions, and remove the pg_pltemplate catalog. 2020-01-29 18:42:43 -05:00
commands Make inherited TRUNCATE perform access permission checks on parent table only. 2020-01-31 00:42:06 +09:00
executor Fix dangling pointer in EvalPlanQual machinery. 2020-01-28 17:26:37 -05:00
foreign Update copyrights for 2020 2020-01-01 12:21:45 -05:00
jit Update copyrights for 2020 2020-01-01 12:21:45 -05:00
lib Update copyrights for 2020 2020-01-01 12:21:45 -05:00
libpq Add connection parameters to control SSL protocol min/max in libpq 2020-01-28 10:40:48 +09:00
main Update copyrights for 2020 2020-01-01 12:21:45 -05:00
nodes Reconsider the representation of join alias Vars. 2020-01-09 11:56:59 -05:00
optimizer Reconsider the representation of join alias Vars. 2020-01-09 11:56:59 -05:00
parser Invent "trusted" extensions, and remove the pg_pltemplate catalog. 2020-01-29 18:42:43 -05:00
partitioning Update copyrights for 2020 2020-01-01 12:21:45 -05:00
po Translation updates 2019-06-17 15:30:20 +02:00
port Update copyrights for 2020 2020-01-01 12:21:45 -05:00
postmaster Fix some memory leaks and improve restricted token handling on Windows 2020-01-27 11:02:05 +09:00
regex Update copyrights for 2020 2020-01-01 12:21:45 -05:00
replication Fix slot data persistency when advancing physical replication slots 2020-01-30 11:14:02 +09:00
rewrite Make rewriter prevent auto-updates on views with conditional INSTEAD rules. 2020-01-14 09:52:21 +00:00
snowball Update copyrights for 2020 2020-01-01 12:21:45 -05:00
statistics Report progress of ANALYZE commands 2020-01-15 11:14:39 -03:00
storage Don't reset latch in ConditionVariablePrepareToSleep(). 2020-01-28 15:28:36 +13:00
tcop Silence minor compiler warnings. 2020-01-19 16:04:36 -05:00
tsearch Move jsonapi.c and jsonapi.h to src/common. 2020-01-29 10:22:51 -05:00
utils Move jsonapi.c and jsonapi.h to src/common. 2020-01-29 10:22:51 -05:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Translation updates 2019-05-20 16:00:53 +02:00