Small cleanup of temp-table handling. Disallow creation of a non-temp
Tom Lane <tgl@sss.pgh.pa.us>
Small cleanup of temp-table handling. Disallow creation of a non-temp table that inherits from a temp table. Make sure the right things happen if one creates a temp table, creates another temp that inherits from it, then renames the first one. (Previously, system would end up trying to delete the temp tables in the wrong order.)
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/heap.c | modified | +4 −4 |
| src/backend/catalog/index.c | modified | +3 −3 |
| src/backend/commands/command.c | modified | +3 −4 |
| src/backend/commands/creatinh.c | modified | +10 −5 |
| src/backend/commands/vacuum.c | modified | +3 −3 |
| src/backend/utils/cache/relcache.c | modified | +2 −2 |
| src/backend/utils/cache/temprel.c | modified | +14 −6 |
| src/include/utils/temprel.h | modified | +3 −1 |