Re: trigger/for key help

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: trigger/for key help
Дата
Msg-id 17189.1081720813@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: trigger/for key help  (Bret Hughes <bhughes@elevating.com>)
Ответы Re: trigger/for key help
Список pgsql-sql
Bret Hughes <bhughes@elevating.com> writes:
> elevating=# drop table test_types;
> ERROR:  could not find tuple for constraint 2041971

> I can find no reference to these oids anywhere.

You haven't looked very hard then ;-).  I expect this is because
pg_depend has links from the table to the constraints it owns.
You could probably remove the pg_depend entries to make it possible
to drop the table.

Use ALTER TABLE next time, eh?  Hand manipulation of the system catalogs
is *not* for those who don't know exactly what they are doing.
        regards, tom lane


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Dennis"
Дата:
Сообщение: Re: cursors and for loops?
Следующее
От: Bret Hughes
Дата:
Сообщение: Re: trigger/for key help