Re: Problem with partitioning - Mailing list pgsql-general

From Tom Lane
Subject Re: Problem with partitioning
Date
Msg-id 15599.1470252784@sss.pgh.pa.us
Whole thread Raw
In response to Re: Problem with partitioning  (JotaComm <jota.comm@gmail.com>)
List 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 by date:

Previous
From: JotaComm
Date:
Subject: Re: Problem with partitioning
Next
From: Adrian Klaver
Date:
Subject: Re: Problem with partitioning