Partitioning and triggers

From: Edson Richter <edsonrichter(at)hotmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Partitioning and triggers
Date: 2013-11-17 16:46:20
Message-ID: BLU0-SMTP285FE86CCAE834A04F6A096CFE50@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Goess 2013-11-17 17:53:05 Re: simple query with radically different plan after 9.0 -> 9.2 upgrade
Previous Message Edson Richter 2013-11-17 14:30:33 Re: Postgres as In-Memory Database?