Re: zombie primary key lurches out of database to devour the brains of the unwary
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: zombie primary key lurches out of database to devour the brains of the unwary |
| Дата | |
| Msg-id | 14931.1093984900@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | zombie primary key lurches out of database to devour the brains of the unwary (Kevin Murphy <murphy@genome.chop.edu>) |
| Список | pgsql-general |
Kevin Murphy <murphy@genome.chop.edu> writes:
> I have a primary key that I can't destroy and can't create. One weird
> symptom is that when I use \d in psql to attempt to display the
> constraint, there is no output at all!
That's strange. Maybe some sort of catalog corruption? Try "psql -E"
to see the queries issued by \d, and then execute them by hand to see
what you get.
> egenome_test=# alter table snp_main_chr22 drop constraint
> snp_main_chr22_pk;
> ERROR: constraint "snp_main_chr22_pk" does not exist
Note that this only says the table doesn't have a constraint by that
name. There could for instance be a non-constraint-associated index
or table by that name. I'm not sure why you're not seeing it in \d,
though, if that were the case.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера