Received: from sss.pgh.pa.us (sss.pgh.pa.us [216.151.103.158]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4IEhPA01366 for ; Fri, 18 May 2001 10:43:25 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.3/8.11.3) with ESMTP id f4IEhGR15500; Fri, 18 May 2001 10:43:16 -0400 (EDT) To: D0 cc: pgsql-admin@postgresql.org Subject: Re: Cannot drop sequence... In-reply-to: <3B02E283.6082956@aero-graphics.com> References: <3B02E283.6082956@aero-graphics.com> Comments: In-reply-to D0 message dated "Wed, 16 May 2001 16:26:43 -0400" Date: Fri, 18 May 2001 10:43:16 -0400 Message-ID: <15497.990196996@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200105/90 X-Sequence-Number: 1438 D0 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