Re: removing duplicated constraints

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Dan Langille <dan(at)langille(dot)org>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: removing duplicated constraints
Date: 2002-03-03 07:42:54
Message-ID: 20020302233809.V58150-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


> 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.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Dan Langille 2002-03-03 16:11:06 Re: removing duplicated constraints
Previous Message Trapper 2002-03-03 01:14:20 Solaris x86 vs Linux vs *BSD for PostgreSQL?