Do table renaming in a sane order: physical file rename must happen
Tom Lane <tgl@sss.pgh.pa.us>
Do table renaming in a sane order: physical file rename must happen *last*, after all updating of system catalogs. In old code, an error detected during TypeRename left the relation hosed. Also, add a call to flush the relation's relcache entry, rather than trusting to shared cache invalidation to flush it for us.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/rename.c | modified | +36 −28 |