Arrange for indexes and toast tables to inherit their ownership from
Tom Lane <tgl@sss.pgh.pa.us>
Arrange for indexes and toast tables to inherit their ownership from the parent table, even if the command that creates them is executed by someone else (such as a superuser or a member of the owning role). Per gripe from Michael Fuhr.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/bootstrap/bootparse.y | modified | +3 −1 |
| src/backend/catalog/heap.c | modified | +7 −3 |
| src/backend/catalog/index.c | modified | +2 −2 |
| src/backend/commands/cluster.c | modified | +2 −1 |
| src/backend/commands/tablecmds.c | modified | +3 −1 |
| src/backend/executor/execMain.c | modified | +2 −1 |
| src/backend/utils/cache/relcache.c | modified | +4 −1 |
| src/include/catalog/heap.h | modified | +2 −1 |