Re: Data problem - error "invalid attribute number # for " - Mailing list pgsql-admin

From Sebastien Boisvert
Subject Re: Data problem - error "invalid attribute number # for "
Date
Msg-id 221585.84480.qm@web34302.mail.mud.yahoo.com
Whole thread Raw
In response to Re: Data problem - error "invalid attribute number # for "  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Data problem - error "invalid attribute number # for "
List pgsql-admin
>
>>> Some poking through the source code finds only one match for that error
>>> message, which is in relcache.c.  It looks like you have a row in
>>> pg_attribute that claims to belong to that relation, but has attnum
>>> 32533.  It would be interesting to see the results for
>>>     select * from pg_attribute where attrelid = 'largedata'::regclass
>>
>> [see attached]

>Hmm, no sign of any such row here ... try reindexing pg_attribute.

It gets more interesting:

MCS=# reindex table pg_attribute;
ERROR:  could not access status of transaction 276828288
DETAIL:  Could not open file "pg_subtrans/1080": No such file or directory.

Couldn't force the reindex, and vacuuming didn't help. I've checked the directory and there's only one file in it
('0004').

There's lots of previous info about that error, not none that I've found (yet) that have the same detail description
(itusually says 'Invalid argument' instead). At this point this looks pretty serious, and unless there's a specific way
todeal with this error (without hopefully running into other new ones), I might just go with our plan to recover the
datausing the backup, instead of spending more time on a possibly lost cause. 


      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr.com/gift/

pgsql-admin by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Postgresql 8.4 pam
Next
From: Tom Lane
Date:
Subject: Re: Data problem - error "invalid attribute number # for "