Re: FATAL: catalog is missing 1 attribute(s) for relid 16396
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: FATAL: catalog is missing 1 attribute(s) for relid 16396 |
| Дата | |
| Msg-id | 26266.1105737587@sss.pgh.pa.us обсуждение |
| Ответ на | Re: FATAL: catalog is missing 1 attribute(s) for relid ("Marc G. Fournier" <scrappy@postgresql.org>) |
| Ответы |
Re: FATAL: catalog is missing 1 attribute(s) for relid
|
| Список | pgsql-hackers |
"Marc G. Fournier" <scrappy@postgresql.org> writes:
> 'k, this is looking promising ... but I'm a bit confused on the TOAST
> tables ... I can't match on 'relname', since they aren't the same ... the
> old has, for instance:
> pg_toast_5773565
> while the new has:
> pg_toast_8709712
> is there some sort of 'linkage' in pg_class that I'm not seeing?
Yeah. A toast table's OID appears in the reltoastrelid field of its
owning table. So you match new and old pg_class entries by name,
take their reltoastrelid fields, look up those rows by OID, and their
relfilenode fields give the names of the TOAST files.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера