| От | Tom Lane |
|---|---|
| Тема | Re: backing up corrupt database |
| Дата | |
| Msg-id | 699.1036005158@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | backing up corrupt database (<terry@ashtonwoodshomes.com>) |
| Список | pgsql-general |
<terry@ashtonwoodshomes.com> writes:
> When I try to drop this corrupted table:
> devtest2=# drop table projects;
> ERROR: cannot find attribute 8 of relation projects
Sounds like a mess. What PG version is this? Do you know what happened
to cause the corruption?
> How can I manually purge this table from the system tables so that I can run
> a backup and then recreate the database?
If you do not care about this table, then "DELETE FROM pg_class WHERE
relname = 'projects'" would do it.
If you do care, I'd try a system-table reindex (read the REINDEX man
page carefully) before giving up on it. The problem is probably just
corruption in one of the indexes on pg_attribute.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера