Re: identifying duplicate RI triggers - Mailing list pgsql-general

From Stephan Szabo
Subject Re: identifying duplicate RI triggers
Date
Msg-id 20021108091612.A12143-100000@megazone23.bigpanda.com
Whole thread Raw
In response to identifying duplicate RI triggers  ("culley harrelson" <culley@ml1.net>)
Responses Re: identifying duplicate RI triggers  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Fri, 8 Nov 2002, culley harrelson wrote:

> I started looking at the RI triggers in a database that started in 7.0.
> Over time has been migrated to 7.1, 7.2, and 7.2.3 and I think all the
> dumping and reloading has left me with some extra triggers.  When do see
> this:
>
> siteadmin=# select tgname, tgargs from pg_trigger where tgname in
> ('RI_ConstraintTrigger_1462942','RI_ConstraintTrigger_1462994');
>             tgname            |
>             tgargs
>
------------------------------+-----------------------------------------------------------------------------------------
>  RI_ConstraintTrigger_1462942 |
>  <unnamed>\000fe_user\000fe_user_type\000UNSPECIFIED\000user_type_id\000user_type_id\000
>  RI_ConstraintTrigger_1462994 |
>  <unnamed>\000fe_user\000fe_user_type\000UNSPECIFIED\000user_type_id\000user_type_id\000
> (2 rows)

You can't just use those, you also need to look at least at tgfoid.
There are generally 3 triggers per constraint that IIRC all have
the same args but different function oids.


pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Win2K Questions
Next
From: Bruce Momjian
Date:
Subject: Re: Win2K Questions