aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2024-02-21 17:18:52 +0100
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2024-02-21 17:18:52 +0100
commit4989ce72644b9d636b9b23c7a1719a405e62670b (patch)
treede9b9301251b559d4b411ad0e23e5e43a2b355aa /src/backend/access/transam/xlog.c
parented345c2728b3ebc160d8335464765679a08031b9 (diff)
downloadpostgresql-4989ce72644b9d636b9b23c7a1719a405e62670b.tar.gz
postgresql-4989ce72644b9d636b9b23c7a1719a405e62670b.zip
MERGE ... DO NOTHING: require SELECT privileges
Verify that a user running MERGE with a DO NOTHING clause has privileges to read the table, even if no columns are referenced. Such privileges were already required if the ON clause or any of the WHEN conditions referenced any column at all, so there's no functional change in practice. This change fixes an assertion failure in the case where no column is referenced by the command and the WHEN clauses are all DO NOTHING. Backpatch to 15, where MERGE was introduced. Reported-by: Alena Rybakina <a.rybakina@postgrespro.ru> Reported-by: Alexander Lakhin <exclusion@gmail.com> Discussion: https://postgr.es/m/4d65a385-7efa-4436-a825-0869f89d9d92@postgrespro.ru
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions