Partitioning and triggers - Mailing list pgsql-general

From Edson Richter
Subject Partitioning and triggers
Date
Msg-id BLU0-SMTP285FE86CCAE834A04F6A096CFE50@phx.gbl
Whole thread Raw
Responses Re: Partitioning and triggers
List pgsql-general
Dear community,

In documentation, when partitioning tables, it is said that "Optionally,
define a trigger or rule to redirect data inserted into the master table
to the appropriate partition."
Is the trigger creation optional? I mean, partitioning will not work as
expected if we don't have the trigger, right? Or will PostgreSQL "decide
automatically" which table to use?
If the trigger is not there, when I add a row to "measurement" table
(like in docs example), it will be phisically inserted into
"measurement" table, not in the childs tables.
Am I right in this understanding?

Thanks,

Edson



pgsql-general by date:

Previous
From: Edson Richter
Date:
Subject: Re: Postgres as In-Memory Database?
Next
From: Kevin Goess
Date:
Subject: Re: simple query with radically different plan after 9.0 -> 9.2 upgrade