pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: D0 <jnielsen@aero-graphics.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Cannot drop sequence...
Date: Fri, 18 May 2001 10:43:16 -0400
Message-ID: <15497.990196996@sss.pgh.pa.us> (raw)
In-Reply-To: <3B02E283.6082956@aero-graphics.com>
References: <3B02E283.6082956@aero-graphics.com>

D0 <jnielsen@aero-graphics.com> writes:
> ERROR:  Relation 'analytics_bud_analytics_bud_seq' already exists
> agi_db=# drop sequence analytics_bud_analytics_bud_seq;
> ERROR:  Relation 'analytics_bud_analytics_bud_seq' does not exist

What PG version are you running?  This looks like the classic catch-22
from pre-7.1 versions wherein you tried to roll back a DROP operation.
The pg_class entry for the dropped sequence rolls back just fine, but
the physical file is already gone, leading to no end of confusion when
you try to manipulate the object later.

If that's what it is, you can resolve the inconsistency and make the
DROP possible with something like

	touch $PGDATA/base/agi_db/analytics_bud_analytics_bud_seq

			regards, tom lane



view thread (3+ messages)

Message-ID: <15497.990196996@sss.pgh.pa.us>
Permalink:  ../15497.990196996@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15497.990196996@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jnielsen@aero-graphics.com
  Subject: Re: Cannot drop sequence...
  In-Reply-To: <15497.990196996@sss.pgh.pa.us>
  References: <3B02E283.6082956@aero-graphics.com> <15497.990196996@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