Do table renaming in a sane order: physical file rename must happen

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 610abfd57b2315a145d800e8f2d97b03509237df
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2000-05-25T21:30:20Z
Releases: 7.1.1
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

PathChange+/−
src/backend/commands/rename.c modified +36 −28