Make renaming a temp table behave sensibly. We don't need to touch
Tom Lane <tgl@sss.pgh.pa.us>
Make renaming a temp table behave sensibly. We don't need to touch the underlying table at all, just change the mapping entry ... but that logic was missing.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/rename.c | modified | +9 −1 |
| src/backend/utils/cache/temprel.c | modified | +109 −25 |
| src/include/utils/temprel.h | modified | +12 −7 |