]> granicus.if.org Git - postgresql/commit
Do table renaming in a sane order: physical file rename must happen
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 25 May 2000 21:30:20 +0000 (21:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 25 May 2000 21:30:20 +0000 (21:30 +0000)
commit610abfd57b2315a145d800e8f2d97b03509237df
tree66b93ca98737f2f5330d07c38d92d86071723430
parent445f1acf7ad1bd700b93a47af7a7a1b9ee46274c
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.
src/backend/commands/rename.c