X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 65D20D1B509 for ; Sun, 9 Nov 2003 21:54:05 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 58876-02 for ; Sun, 9 Nov 2003 17:53:35 -0400 (AST) Received: from localhost.localdomain (66-79-77-4.dsl.mebtel.net [66.79.77.4]) by svr1.postgresql.org (Postfix) with ESMTP id 3BA43D1B536 for ; Sun, 9 Nov 2003 17:53:33 -0400 (AST) Received: by localhost.localdomain (Postfix, from userid 500) id 11AB0F14AF; Sun, 9 Nov 2003 16:53:24 -0500 (EST) Subject: Re: Database Error (Bogus atrribute number 24....) From: Steven Tower To: Tom Lane Cc: pgsql-admin@postgresql.org In-Reply-To: <7115.1068307532@sss.pgh.pa.us> References: <1068302994.13970.20.camel@localhost.localdomain> <7115.1068307532@sss.pgh.pa.us> Content-Type: multipart/alternative; boundary="=-aIZyOj6yOw1HvPdKgJGe" Message-Id: <1068414803.1491.19.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 (1.4.3-3) Date: 09 Nov 2003 16:53:23 -0500 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/155 X-Sequence-Number: 11142 --=-aIZyOj6yOw1HvPdKgJGe Content-Type: text/plain Content-Transfer-Encoding: 7bit I just want to let you know your sugestion worked and allowed me to dump and restore the current database. Thanks much, Steven On Sat, 2003-11-08 at 11:05, Tom Lane wrote: > Steven Tower writes: > > I am receiving the following error from Postgres 7.3.3 on Linux > > Bogus attribute number 24 for vs_actfreighservices (a view). > > Hm, can you tell us how you got into this fix? That shouldn't happen > AFAICS. > > As far as getting out of the problem is concerned, if you don't need the > view you could just manually delete its pg_class row: as superuser do > > delete from pg_class where relname = 'vs_actfreighservices' > > (if you have multiple views named vs_actfreighservices in different > schemas, more selectivity would be needed). That should leave you in a > state where you can run pg_dump. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) --=-aIZyOj6yOw1HvPdKgJGe Content-Type: text/html; charset=utf-8 I just want to let you know your sugestion worked and allowed me to dump and restore the current database.

Thanks much,

Steven


On Sat, 2003-11-08 at 11:05, Tom Lane wrote:
Steven Tower <tower@towerhome.cx> writes:
> I am receiving the following error from Postgres 7.3.3 on Linux
> Bogus attribute number 24 for vs_actfreighservices (a view).

Hm, can you tell us how you got into this fix?  That shouldn't happen
AFAICS.

As far as getting out of the problem is concerned, if you don't need the
view you could just manually delete its pg_class row: as superuser do

	delete from pg_class where relname = 'vs_actfreighservices'

(if you have multiple views named vs_actfreighservices in different
schemas, more selectivity would be needed).  That should leave you in a
state where you can run pg_dump.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
--=-aIZyOj6yOw1HvPdKgJGe--