Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YRjmk-0007P9-Kw for pgsql-bugs@arkaria.postgresql.org; Sat, 28 Feb 2015 15:58:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YRjmk-0006CL-41 for pgsql-bugs@arkaria.postgresql.org; Sat, 28 Feb 2015 15:58:34 +0000 Received: from makus.postgresql.org ([174.143.35.229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YRjmi-0006CC-1b for pgsql-bugs@postgresql.org; Sat, 28 Feb 2015 15:58:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YRjmZ-0007lv-TF for pgsql-bugs@postgresql.org; Sat, 28 Feb 2015 15:58:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t1SFwFnv027739; Sat, 28 Feb 2015 10:58:15 -0500 From: Tom Lane To: John R Pierce cc: pgsql-bugs@postgresql.org, IPN Bala GSS TVL Subject: Re: BUG #12812: invalid attribute number for In-reply-to: <54F19160.7050606@hogranch.com> References: <20150228062935.2544.57981@wrigleys.postgresql.org> <54F19160.7050606@hogranch.com> Comments: In-reply-to John R Pierce message dated "Sat, 28 Feb 2015 01:58:56 -0800" Date: Sat, 28 Feb 2015 10:58:15 -0500 Message-ID: <27738.1425139095@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org John R Pierce writes: > On 2/28/2015 1:50 AM, IPN Bala GSS TVL wrote: >> ERROR: invalid attribute number 24932 for transaction_set >> LINE 1: SELECT * FROM AD_GSS_DMS_P.TRANSACTION_SET > that looks like data corruption may have occurred. Yeah :-(. The only occurrence of that message text in 9.3 is in RelationBuildTupleDesc, and it's saying it found a row in pg_attribute with that attnum and the mentioned table's attrelid. The attnum is obviously bogus for any row in pg_attribute, ergo something has corrupted data in pg_attribute. It's unlikely that only one row has been corrupted, too :-( Depending on how valuable that database is, you might want to go back to your last backups, or you might want to seek professional help --- there are assorted consulting companies that specialize in dealing with data-corruption situations. In any case you should try to identify the cause of the problem. It's more than likely a hardware or OS problem --- there are few known reasons for Postgres itself to cause this sort of failure. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs