| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Heikki Linnakangas <heikki(at)enterprisedb(dot)com> |
| Cc: | ohp(at)pyrenet(dot)fr, Rick Gigger <rick(at)alpinenetworking(dot)com>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: should I worry? |
| Date: | 2007-11-06 14:58:29 |
| Message-ID: | 19289.1194361109@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Heikki Linnakangas <heikki(at)enterprisedb(dot)com> writes:
> ohp(at)pyrenet(dot)fr wrote:
>> I'd love to find a query against pg_triggers giving the table name for
>> each RI_ConstraintTrigger_xxx.
> SELECT t.tgname, c.relname, tgconstrname FROM pg_trigger t, pg_class c
> WHERE t.tgrelid = c.oid AND tgname like 'RI_ConstraintTrigger_%';
Um ... that will find all triggers named like that, but I think Olivier
only wants to find the ones that are not attached to a constraint.
In HEAD it would do to add "... AND tgconstraint = 0" but in 8.2
I'm afraid he's got to dig through pg_depend ...
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2007-11-06 15:05:58 | Re: should I worry? |
| Previous Message | Heikki Linnakangas | 2007-11-06 14:54:22 | Re: Visibility map thoughts |