Re: RE: finding and removing a constraint... - Mailing list pgsql-general

From Frank Joerdens
Subject Re: RE: finding and removing a constraint...
Date
Msg-id 20010321000349.A22401@rakete.joerdens.de
Whole thread Raw
In response to Re: RE: finding and removing a constraint...  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Responses Re: RE: finding and removing a constraint...  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-general
On Tue, Mar 20, 2001 at 02:18:23PM -0800, Stephan Szabo wrote:
>
> > The problem is that the syntax
> >
> > create table SomeTable (
> > SomeColumn          int4 references OtherTable ( SomeColumn ),
> >  . . .
> >
> > creates an <unnamed> trigger which you can't drop with drop trigger
> > because it doesn't have a name. What you suggest does work for me,
i.e.
> > deleting from pg_trigger and then adjusting the trigger count in
> > pg_class but it is quite cumbersome.
>
> You should be able to, you just have to use the *real* trigger name
(first
> column in pg_trigger, will look like RI_ConstraintTrigger_<oid> or
> something like that) and make sure to "" it because it's a quoted
mixed
> case name.

Oh. That must've been the problem; I didn't know you had to quote it,
because
I did try using that name.

Cheers, Frank

pgsql-general by date:

Previous
From: Matthew
Date:
Subject: RE: Real 7.1
Next
From: John Madden
Date:
Subject: Re: Really Dumb Question...(Dumping db)