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.
Showing
Please register or sign in to comment