Re: Seeing where a given trigger function is in use?

Поиск
Список
Период
Сортировка
От Jerry Sievers
Тема Re: Seeing where a given trigger function is in use?
Дата
Msg-id 87o8ncalcy.fsf@jsievers.enova.com
обсуждение исходный текст
Ответ на Seeing where a given trigger function is in use?  (Wells Oliver <wells.oliver@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Wells Oliver
Дата:
Сообщение: Seeing where a given trigger function is in use?
Следующее
От: jose fuenmayor
Дата:
Сообщение: Temp tables