Re: removing duplicated constraints

Поиск
Список
Период
Сортировка
Искать
От
Stephan Szabo
Тема
Re: removing duplicated constraints
Дата
Msg-id
20020302233809.V58150-100000@megazone23.bigpanda.com
Ответ на
Список
Дерево обсуждения
removing duplicated constraints "Dan Langille" <dan@langille.org>
Re: removing duplicated constraints "Dan Langille" <dan@langille.org>
Re: removing duplicated constraints Stephan Szabo <sszabo@megazone23.bigpanda.com>
Re: removing duplicated constraints "Dan Langille" <dan@langille.org>
Re: removing duplicated constraints Stephan Szabo <sszabo@megazone23.bigpanda.com>
Re: removing duplicated constraints "Dan Langille" <dan@langille.org>
Re: removing duplicated constraints Stephan Szabo <sszabo@megazone23.bigpanda.com>

> I found the list of duplicate constraints by eyeballing the files I
> created using the methods mentioned in previous post (mainly grep and
> sort).  Then I would search in the original dump file for the the CREATE
> CONSTRAINT statement.  Using the name found there
> (RI_ConstraintTrigger_998199), I did this:
>
>   drop TRIGGER "RI_ConstraintTrigger_998189" on categories;
>
> Making sense?

Well, I'm not sure that you're guaranteed to get the same trigger names
after the restore as the ones in the dump file comments.  You may have to
look in the system table for the actual current trigger name for the
triggers with those arguments.


В списке pgsql-admin по дате отправления
От: Dan Langille
Дата:
От: Dan Langille
Дата:
FAQ