Re: Data problem - error "invalid attribute number # for "

Поиск
Список
Период
Сортировка
От Sebastien Boisvert
Тема Re: Data problem - error "invalid attribute number # for "
Дата
Msg-id 221585.84480.qm@web34302.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Re: Data problem - error "invalid attribute number # for "  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Data problem - error "invalid attribute number # for "
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Postgresql 8.4 pam
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Data problem - error "invalid attribute number # for "