Re: Seeing where a given trigger function is in use? - Mailing list pgsql-admin

From Jerry Sievers
Subject Re: Seeing where a given trigger function is in use?
Date
Msg-id 87o8ncalcy.fsf@jsievers.enova.com
Whole thread Raw
In response to Seeing where a given trigger function is in use?  (Wells Oliver <wells.oliver@gmail.com>)
List pgsql-admin
Wells Oliver <wells.oliver@gmail.com> writes:

> Trying to track down every table that is using a certain trigger
> function, what's the best way to do that?

Have a look at the fields tgrelid and tgfoid in your pg_trigger catalog
where you will be enlightened :-)

For starters...

select tgrelid::regclass, tgfoid::regproc from pg_trigger;

Enjoy!

>
> --
> Wells Oliver
> wells.oliver@gmail.com
>
>

-- 
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres.consulting@comcast.net



pgsql-admin by date:

Previous
From: Wells Oliver
Date:
Subject: Seeing where a given trigger function is in use?
Next
From: jose fuenmayor
Date:
Subject: Temp tables