Thread: pgsql/src/backend/commands (rename.c)

pgsql/src/backend/commands (rename.c)

From
Tom Lane
Date:
  Date: Thursday, May 25, 2000 @ 17:30:20
Author: tgl

Update of /home/projects/pgsql/cvsroot/pgsql/src/backend/commands
     from hub.org:/home/projects/pgsql/tmp/cvs-serv32982

Modified Files:
    rename.c

-----------------------------  Log Message  -----------------------------

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.