summaryrefslogtreecommitdiff
path: root/src/backend/commands/copyto.c
diff options
context:
space:
mode:
authorNathan Bossart2025-11-10 15:00:00 +0000
committerNathan Bossart2025-11-10 15:00:00 +0000
commit5e4fcbe531c668b4112beedde97aac79724074c5 (patch)
treee7730d86b4273314d18202fad67e4524b1ec6324 /src/backend/commands/copyto.c
parent600086f471a3bb57ff4953accf1d3f8d2efe0201 (diff)
Check for CREATE privilege on the schema in CREATE STATISTICS.HEADmaster
This omission allowed table owners to create statistics in any schema, potentially leading to unexpected naming conflicts. For ALTER TABLE commands that require re-creating statistics objects, skip this check in case the user has since lost CREATE on the schema. The addition of a second parameter to CreateStatistics() breaks ABI compatibility, but we are unaware of any impacted third-party code. Reported-by: Jelte Fennema-Nio <[email protected]> Author: Jelte Fennema-Nio <[email protected]> Co-authored-by: Nathan Bossart <[email protected]> Reviewed-by: Noah Misch <[email protected]> Reviewed-by: Álvaro Herrera <[email protected]> Security: CVE-2025-12817 Backpatch-through: 13
Diffstat (limited to 'src/backend/commands/copyto.c')
0 files changed, 0 insertions, 0 deletions