Commit 9eabfe3
committed
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.us1 parent cc865c0 commit 9eabfe3
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16404 | 16404 | | |
16405 | 16405 | | |
16406 | 16406 | | |
| 16407 | + | |
| 16408 | + | |
| 16409 | + | |
| 16410 | + | |
| 16411 | + | |
| 16412 | + | |
| 16413 | + | |
16407 | 16414 | | |
16408 | 16415 | | |
16409 | 16416 | | |
| |||
16685 | 16692 | | |
16686 | 16693 | | |
16687 | 16694 | | |
| 16695 | + | |
| 16696 | + | |
| 16697 | + | |
| 16698 | + | |
| 16699 | + | |
| 16700 | + | |
| 16701 | + | |
16688 | 16702 | | |
16689 | 16703 | | |
16690 | 16704 | | |
| 16705 | + | |
16691 | 16706 | | |
16692 | 16707 | | |
16693 | 16708 | | |
| |||
0 commit comments