Skip site navigation (1) Skip section navigation (2)

Re: [INTERFACES] Wierd error when creating a table...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alex Turner <aturner(at)maaco(dot)com>, "pgsql-interfaces(at)postgreSQL(dot)org" <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Re: [INTERFACES] Wierd error when creating a table...
Date: 1999-05-27 21:37:52
Message-ID: 23670.927841072@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-interfaces
I wrote:
> That's a bug: the physical file for the relation has already been
> created by the time the failure in creating the index occurs, and
> although all the updates to system tables get backed out, the empty
> file is not removed during the transaction abort.

After further investigation, the above is wrong, or at least obsolete:
the physical file for the table that couldn't be created *is* removed
when the transaction is cleaned up.  (At least it is in current 6.5
code; didn't try older versions.)  There's still a bug though ---
apparently the system still has an entry for the failed table in its
"relation cache", and that prevents a subsequent CREATE TABLE for the
same table name from succeeding.

A workaround is to exit your psql session and start a new one; the
new backend won't have the erroneous cache entry.  This needs to be
fixed though.

			regards, tom lane

pgsql-interfaces by date

Next:From: Peter MountDate: 1999-05-28 09:17:31
Subject: RE: [INTERFACES] Re: [GENERAL] JDBC and insert - stack overflow
Previous:From: Mark GrimseyDate: 1999-05-27 21:12:51
Subject: Oracle and Postgresql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group