Re: Problem with partitioning

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with partitioning
Дата
Msg-id 15599.1470252784@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Problem with partitioning  (JotaComm <jota.comm@gmail.com>)
Список pgsql-general
JotaComm <jota.comm@gmail.com> writes:
>​The trigger code:

> tg_table_update AFTER UPDATE ON parent_table FOR EACH ROW EXECUTE PROCEDURE
> f_table_update()

I'm fairly sure that per-row triggers only fire on events in their table,
ie this would fire on updates to rows in parent_table itself, but not on
updates to rows in the child tables.  To get that effect, attach the same
trigger procedure to all the children.

Don't recall offhand what the rules are for per-statement triggers.

            regards, tom lane


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

Предыдущее
От: JotaComm
Дата:
Сообщение: Re: Problem with partitioning
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Problem with partitioning