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 74950D1B504 for ; Sat, 8 Nov 2003 20:46:21 +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 32536-10 for ; Sat, 8 Nov 2003 16:45:51 -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 EF1D3D1B535 for ; Sat, 8 Nov 2003 16:43:37 -0400 (AST) Received: by localhost.localdomain (Postfix, from userid 500) id D489FF13FA; Sat, 8 Nov 2003 15:43:38 -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/related; type="multipart/alternative"; boundary="=-ro465ONhCE+KQbv3Xzrb" Message-Id: <1068324218.1491.3.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 (1.4.3-3) Date: 08 Nov 2003 15:43:38 -0500 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/150 X-Sequence-Number: 11137 --=-ro465ONhCE+KQbv3Xzrb Content-Type: multipart/alternative; boundary="=-9+3OqeO5EALByWrTItoE" --=-9+3OqeO5EALByWrTItoE Content-Type: text/plain Content-Transfer-Encoding: 7bit Thats the thing, I have no idea how I got into this. I was cutting and pasting the view from one database to another. Did a refresh, it didn't show, I pasted again, it allowed it and then all hell broke lose. :-) This was in pg_admin III. Thanks for the fix, I will try, I can afford to lose it on all databases in the system, I have copies on 3 different systems. The issue is this one database that it happened on happens to be the one in production. 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 --=-9+3OqeO5EALByWrTItoE Content-Type: text/html; charset=utf-8 Thats the thing, I have no idea how I got into this.  I was cutting and pasting the view from one database to another.  Did a refresh, it didn't show, I pasted again, it allowed it and then all hell broke lose. :-)

This was in pg_admin III.

Thanks for the fix, I will try, I can afford to lose it on all databases in the system, I have copies on 3 different systems.  The issue is this one database that it happened on happens to be the one in production.

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
--=-9+3OqeO5EALByWrTItoE-- --=-ro465ONhCE+KQbv3Xzrb Content-ID: <1068324157.1491.0.camel@localhost.localdomain> Content-Disposition: attachment; filename=smiley-3.png Content-Type: image/png; name=smiley-3.png Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAC+klEQVR42n2T bUjVdxTHP/+H69Xda2VWlFe69rzthZJUoxeNOWoFGxEhYRRFmZSVW2u9ab2K ejWE1qDNBkEQhS82VoiaZkVPmoWaKNM5mA+opbd771//997//T/+epHBarEP HA6Hc84XDnwP/JcwcBS4AVgzcR04ONN7C+md+pcPCz44dPLAarZs/gg1UABu G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