Re: can trigger monitor two tables?

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: can trigger monitor two tables?
Дата
Msg-id 20161128104907.GA8323@tux
обсуждение исходный текст
Ответ на can trigger monitor two tables?  ("zhangkai.gis"<zhangkai.gis@163.com>)
Список pgsql-performance
zhangkai.gis <zhangkai.gis@163.com> wrote:

> Hello all,
>      I can monitor a table use triger write in language C as the example in
> postgres document .But I don't know whether or not can a trigger monitor more
> than one table?Is there a example?

i hope i understand you ...

you can use the same trigger-function for more than one table, but a
TRIGGER is per table, you have to define the trigger for every table.


Regards, Andreas Kretschmer
--
Andreas Kretschmer
http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: "zhangkai.gis"
Дата:
Сообщение: can trigger monitor two tables?
Следующее
От: Marc-Olaf Jaschke
Дата:
Сообщение: performance issue with bitmap index scans on huge amounts of big jsonb documents