From tower@towerhome.cx Sat Nov 8 14:50:22 2003 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 C6074D1B50E for ; Sat, 8 Nov 2003 14:50:22 +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 63865-09 for ; Sat, 8 Nov 2003 10:49:54 -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 CA845D1B500 for ; Sat, 8 Nov 2003 10:49:50 -0400 (AST) Received: by localhost.localdomain (Postfix, from userid 500) id DF23EF13FA; Sat, 8 Nov 2003 09:49:54 -0500 (EST) Subject: Database Error (Bogus atrribute number 24....) From: Steven Tower To: pgsql-admin@postgresql.org Content-Type: multipart/alternative; boundary="=-xjoDb5K1f2zIVgsxsKqK" Message-Id: <1068302994.13970.20.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 (1.4.3-3) Date: 08 Nov 2003 09:49:54 -0500 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/134 X-Sequence-Number: 11122 --=-xjoDb5K1f2zIVgsxsKqK Content-Type: text/plain Content-Transfer-Encoding: 7bit I am receiving the following error from Postgres 7.3.3 on Linux Bogus attribute number 24 for vs_actfreighservices (a view). This error is preventing me from doing a dump on the database's and I cannot delete the view that has the problem. Is there a way I can work around this? I can access and use the database just fine, but without the ability to edit/delete views and or backup the database it's become quite a issue. If anyone knows how I might fix this, please help. Thanks, Steven --=-xjoDb5K1f2zIVgsxsKqK Content-Type: text/html; charset=utf-8 I am receiving the following error from Postgres 7.3.3 on Linux

Bogus attribute number 24 for vs_actfreighservices (a view).

This error is preventing me from doing a dump on the database's and I cannot delete the view that has the problem.

Is there a way I can work around this?  I can access and use the database just fine, but without the ability to edit/delete views and or backup the database it's become quite a issue.

If anyone knows how I might fix this, please help.

Thanks,

Steven --=-xjoDb5K1f2zIVgsxsKqK-- From tgl@sss.pgh.pa.us Sat Nov 8 16:06:05 2003 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 EF13DD1B4F6 for ; Sat, 8 Nov 2003 16:06: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 82938-03 for ; Sat, 8 Nov 2003 12:05:34 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 701ADD1B507 for ; Sat, 8 Nov 2003 12:05:33 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id hA8G5W19007116; Sat, 8 Nov 2003 11:05:32 -0500 (EST) To: Steven Tower Cc: pgsql-admin@postgresql.org Subject: Re: Database Error (Bogus atrribute number 24....) In-reply-to: <1068302994.13970.20.camel@localhost.localdomain> References: <1068302994.13970.20.camel@localhost.localdomain> Comments: In-reply-to Steven Tower message dated "08 Nov 2003 09:49:54 -0500" Date: Sat, 08 Nov 2003 11:05:32 -0500 Message-ID: <7115.1068307532@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/135 X-Sequence-Number: 11123 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 From tower@towerhome.cx Sat Nov 8 20:46:21 2003 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 Gkvvp7X1Iad+itE/YtUAle8TuH26sujzqq/LkJQsnOQQVmIASVJQMhehZORi Jwc5d76FH2pf3gY2Aigzy7+eObqmtOqbXbjGGHZqCM+eQpJ9AHhWFCc5CAjW f1KAkppc+qg3vRCol4Fw0aqcisOVW3HTE7hmBElSKD/5GFkNMhH1KDvegST7 8CwNSfZxeM88VuYrh4CwAuxqvxL6MnPuWiy9H1kNUPH9fZofDKPpHn8/z+Z6 Yw8JK5stX5VhRO6h+OfiV3WaHxtPVKAwmF+KqXUDMkgqZ0+UoKcEP57/GXOq h46ODqrPXUQfufb6YOGxJOQD2CaHQnnlAJ4zDXggHBYvK6ap6Rau+RIz1k7d jd+YHrqMpXUC4KQnWTRPAdiuRqNRkFQG/omRNJOsKVQw408xtS4QDsI10Aaq EY6O8Fzq70fJy3XI8gsA5HTarBdOkvwFKj39EWrr/sJzEnj29OvsphGugfBs LlwbZnjcYN36LxiLuADtMtCUetFAcE4ee8s+pbHVYtOemwhHx3MSaPEY3X9O Unqsk5a2OMeP7KC3t4u+3gRALUC4cEW2eN62Q4ze3SAiz74TDxvOiI+XBcTs oCoyfJKYn6OKmrMbxGRnlXhyJSSqv80Vq0KSAFa+ceKl0wcK9lfsW42TGsE/ pxhfcDmKfz6eFUPg4iRH6Ov6g9EJh1t341xusWuAyn9b+c7BrbklJ8oDZGTO QpL9ePY08SmDpCEwbcHwuE370ykuNlj3gM/e90yXliyU9+8sCVJYlEUgU8Iw BZruMThm83uzxsAYV4Hd/A9h4BjQBthAFOgDLgDF7w6/ArI6YJ0eTQeGAAAA AElFTkSuQmCC --=-ro465ONhCE+KQbv3Xzrb-- From tower@towerhome.cx Sun Nov 9 21:54:05 2003 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--