pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Dan Langille <dan@langille.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: removing duplicated constraints
Date: Sun, 3 Mar 2002 10:27:07 -0800 (PST)
Message-ID: <20020303102647.E64448-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <200203031611.g23GB8k64660@lists.unixathome.org>

On Sun, 3 Mar 2002, Dan Langille wrote:

> On 2 Mar 2002 at 23:42, Stephan Szabo wrote:
>
> >
> > > 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.
>
> There was no restore.  I did the dump in order to find the duplicates.
> Then used that information to find and remove them.

Then yes, that's all you should need to do.




view thread (7+ messages)

Message-ID: <20020303102647.E64448-100000@megazone23.bigpanda.com>
Permalink:  ../20020303102647.E64448-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20020303102647.E64448-100000@megazone23.bigpanda.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, dan@langille.org
  Subject: Re: removing duplicated constraints
  In-Reply-To: <20020303102647.E64448-100000@megazone23.bigpanda.com>
  References: <200203031611.g23GB8k64660@lists.unixathome.org> <20020303102647.E64448-100000@megazone23.bigpanda.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox