Re: drop constraint problem

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: drop constraint problem
Дата
Msg-id 20020522105819.N66201-100000@houston.familyhealth.com.au
обсуждение исходный текст
Ответ на drop constraint problem  (Wolfgang.Fuertbauer@ebewe.com)
Список pgsql-sql
If y;ou check the manual, you'll notice that Postgres doesn't support
dropping foreign key constraints just yet...

You'll need to delete the three constraints manually from pg_trigger.
This is tricky, but you can dlete them by their name and the oid of the
table that they're on...

Chris

On Tue, 21 May 2002 Wolfgang.Fuertbauer@ebewe.com wrote:

>
> Hi all,
>
> i'm running 7.2.1 and have problems with dropping constraints:
>
> fakt32=#  alter table wkfaktzeilen
>             add constraint printjobfk foreign key (printjob)
>             references wkfaktdruck(printjob)
>             match full
>             on delete cascade
>             on update cascade;
> >ALTER
>
> fakt32=# alter table wkfaktzeilen drop constraint printjobfk restrict;
> >ERROR:  ALTER TABLE / DROP CONSTRAINT: printjobfk does not exist
>
> fakt32=# alter table wkfaktdruck drop constraint printjobfk restrict;
> >ERROR:  ALTER TABLE / DROP CONSTRAINT: printjobfk does not exist
>
> but when dropping the table, the triggers are deleted and i can see the
> entries
> in pg_triggers??
>
> please help
> Wolfgang
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>



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

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: A proposal for Interval Math
Следующее
От: "Tille, Andreas"
Дата:
Сообщение: Turning column into row