Re: RE: finding and removing a constraint...

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Frank Joerdens <frank(at)joerdens(dot)de>
Cc: chris markiewicz <cmarkiew(at)commnav(dot)com>, "'PostgreSQL-general'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: RE: finding and removing a constraint...
Date: 2001-03-20 23:38:50
Message-ID: Pine.BSF.4.21.0103201538090.31120-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-announce pgsql-general

On Wed, 21 Mar 2001, Frank Joerdens wrote:

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

Yeah, it confused me at first. If you don't quote it it'll try
lowercasing the entire name on you and then it won't match.

In response to

Browse pgsql-announce by date

  From Date Subject
Next Message Bruce Momjian 2001-03-23 18:11:05 Transcript of Internet Chat
Previous Message Frank Joerdens 2001-03-20 23:03:49 Re: RE: finding and removing a constraint...

Browse pgsql-general by date

  From Date Subject
Next Message Gordon A. Runkle 2001-03-20 23:41:20 7.1b6 - pg_xlog filled fs, postmaster won't start
Previous Message Eric, Audet 2001-03-20 23:23:30 Hope it is not too offtopic