pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alex Turner <aturner@maaco.com>
To: pgsql-interfaces@postgreSQL.org <pgsql-interfaces@postgreSQL.org>
Subject: Re: [INTERFACES] Wierd error when creating a table...
Date: Thu, 27 May 1999 17:37:52 -0400
Message-ID: <23670.927841072@sss.pgh.pa.us> (raw)
In-Reply-To: <23539.927838492@sss.pgh.pa.us>

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



view thread (3+ messages)

Message-ID: <23670.927841072@sss.pgh.pa.us>
Permalink:  ../23670.927841072@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23670.927841072@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, aturner@maaco.com
  Subject: Re: [INTERFACES] Wierd error when creating a table...
  In-Reply-To: <23670.927841072@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox