Re: table rename oddity - Mailing list pgsql-general

From Tom Lane
Subject Re: table rename oddity
Date
Msg-id 22829.959267733@sss.pgh.pa.us
Whole thread Raw
In response to table rename oddity  (Ari Jolma <ajolma@water.hut.fi>)
List pgsql-general
Ari Jolma <ajolma@water.hut.fi> writes:
> Is this kind of behavior intended. When I try to rename a table to
> a reserved word -  I have tried to use 'lseg' which is a type - postgres
> gives me an error but the change has been partly done and the
> only way back seems to be to go to the database directory and
> rename the file. I have tested this with version 7.0.

Boo hiss --- the physical file rename must be the *last* step in
table rename, after all other possible errors have been checked.
Evidently it's not :-(.  Will fix.

            regards, tom lane

pgsql-general by date:

Previous
From: "Terry Van Belle"
Date:
Subject: Public Domain SQL grammars?
Next
From: Tom Lane
Date:
Subject: Re: problem with NOTICE: _outNode: don't know how to print type