aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeWorktablescan.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-01-12 13:37:38 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2021-01-12 13:37:38 -0500
commit436d9c5cabfcc3ffe83453b85299044f3aa0d86e (patch)
tree18d936847c3255cdfb7884f025a1c235d7b9b727 /src/backend/executor/nodeWorktablescan.c
parenta2768e44e879e62d9bb6f0bda4d695cd73d03843 (diff)
downloadpostgresql-436d9c5cabfcc3ffe83453b85299044f3aa0d86e.tar.gz
postgresql-436d9c5cabfcc3ffe83453b85299044f3aa0d86e.zip
pg_dump: label INDEX ATTACH ArchiveEntries with an owner.
Although a partitioned index's attachment to its parent doesn't have separate ownership, the ArchiveEntry for it needs to be marked with an owner anyway, to ensure that the ALTER command is run by the appropriate role when restoring with --use-set-session-authorization. Without this, the ALTER will be run by the role that started the restore session, which will usually work but it's formally the wrong thing. Back-patch to v11 where this type of ArchiveEntry was added. In HEAD, add equivalent commentary to the just-added TABLE ATTACH case, which I'd made do the right thing already. Discussion: https://postgr.es/m/1094034.1610418498@sss.pgh.pa.us
Diffstat (limited to 'src/backend/executor/nodeWorktablescan.c')
0 files changed, 0 insertions, 0 deletions