Re: [GENERAL] Which trigger execute which function?

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: [GENERAL] Which trigger execute which function?
Дата
Msg-id 3C83AEC3.8040106@joeconway.com
обсуждение исходный текст
Ответ на Which trigger execute which function?  ("Raymond Chui" <Raymond.Chui@noaa.gov>)
Список pgsql-admin
Raymond Chui wrote:
> Previous DBA create a lot of triggers and functions without
> documentation like:
>
> CREATE TRIGGER trigger_name [BEFORE | AFTER] event ON table_name
> FOR EACH ROW EXECUTE PROCEDURE function_name();
>
> Now he is gone. I couldn't find his PL/PGSQL source codes!
>
> I can do
>
> SELECT * FROM pg_proc;
> SELECT * FROM pg_trigger;
>
> to list all the name of triggers and functions. But I don't know which
> trigger
> execute which function. How do I find out that?
>
> Our USENET new server (NNTP) doesn't have comp.databases.postgresql.*
> news groups. Therefore, please cc: a copy to me if you reply.
> Thank Q very much in advance!
>

You could use "pg_dump -s > mydb.dmp" to dump the database schema. Then
open mydb.dmp in a text editor. I think this will show you all the
details you need.

HTH,

Joe



В списке pgsql-admin по дате отправления:

Предыдущее
От: "Nick Fankhauser"
Дата:
Сообщение: long vacuum
Следующее
От: Tom Lane
Дата:
Сообщение: Re: something similar to explain