Re: Show triggers in psql?

Поиск
Список
Период
Сортировка
Искать
От
Stephan Szabo
Тема
Re: Show triggers in psql?
Дата
Msg-id
Pine.BSF.4.10.10009140858080.28013-100000@megazone23.bigpanda.com
Ответ на
Show triggers in psql? (Bryan Field-Elliot)
Список
Дерево обсуждения
RE: [HACKERS] List funnies ? Dana.Reed@clinicaldatacare.com
RE: [HACKERS] List funnies ? Zeljko Trogrlic <zeljko@technologist.com>
RE: [HACKERS] List funnies ? The Hermit Hacker <scrappy@hub.org>
RE: [HACKERS] List funnies ? Zeljko Trogrlic <zeljko@technologist.com>

You can get a list of all triggers in the system
as 
select * from pg_trigger;

You can get the source for a PL function a trigger
calls with:
select prosrc from pg_trigger,pg_proc where
 pg_proc.oid=pg_trigger.tgfoid
 and pg_trigger.tgname = ''

[Note, in the case of C functions, I think this 
returns the name of the function.]


Stephan Szabo
sszabo@bigpanda.com

On Thu, 14 Sep 2000, Bryan Field-Elliot wrote:

> Forgive me if I am missing the obvious, but can someone please tell me how
> to show a list of triggers, or the code in a specific trigger, via the pgsql
> utility?
> 
> Thank you,
> Bryan
> 

В списке pgsql-general по дате отправления
От: Bryan White
Дата:
Сообщение: Corrupt Table
От: Richard Poole
Дата:
Сообщение: "initdb -t" ate my baby
FAQ