Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1THbGJ-0001ER-3e for pgsql-bugs@postgresql.org; Fri, 28 Sep 2012 14:09:51 +0000 Received: from gateway.flygtaxi.se ([212.37.18.66] helo=mailman.flygtaxi.se) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1THbGH-0002gs-3I for pgsql-bugs@postgresql.org; Fri, 28 Sep 2012 14:09:50 +0000 Received: from host-172-17-6-145.flygtaxi.se ([172.17.6.145] ident=mk) by mailman.flygtaxi.se with esmtp (Exim 4.69) (envelope-from ) id 1THbGF-0003Ao-QU for pgsql-bugs@postgresql.org; Fri, 28 Sep 2012 16:09:47 +0200 Message-ID: <5065AFAB.1030305@mksoft.nu> Date: Fri, 28 Sep 2012 16:09:47 +0200 From: =?ISO-8859-1?Q?Mikael_Kjellstr=F6m?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Corrupt view in PostgreSQL 9.0.9 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201209/294 X-Sequence-Number: 34288 Hi, First some info about the machine and the postgres version: os: Debian 6.0.5 (64-bit) postgres version: PostgreSQL 9.0.9 on x86_64-unknown-linux-gnu, compiled by GCC gcc (Debian 4.4.5-8) 4.4.5, 64-bit The problem: I first noticed pg_dump giving the following error message when trying to dump the database: pg_dump: invalid column numbering in table "communitytaxiexceptions" then when I connect to the database with psql and try to drop the view I get the following error: # drop view communitytaxiexceptions ; ERROR: invalid attribute number 0 for communitytaxiexceptions and a select gives the same error message: # select * from communitytaxiexceptions ; ERROR: invalid attribute number 0 for communitytaxiexceptions LINE 1: select * from communitytaxiexceptions ; ^ Is there anything thing I could do to manually remove the view or fix the problem? Thanks in advance, Mikael