Re: Problem with partitioning

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: JotaComm <jota(dot)comm(at)gmail(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Problem with partitioning
Date: 2016-08-03 19:33:04
Message-ID: 15599.1470252784@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

JotaComm <jota(dot)comm(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2016-08-03 21:47:24 Re: Problem with partitioning
Previous Message JotaComm 2016-08-03 19:11:24 Re: Problem with partitioning