Partitioning and triggers

Поиск
Список
Период
Сортировка
От Edson Richter
Тема Partitioning and triggers
Дата
Msg-id BLU0-SMTP285FE86CCAE834A04F6A096CFE50@phx.gbl
обсуждение исходный текст
Ответы Re: Partitioning and triggers
Список 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 по дате отправления:

Предыдущее
От: Edson Richter
Дата:
Сообщение: Re: Postgres as In-Memory Database?
Следующее
От: Kevin Goess
Дата:
Сообщение: Re: simple query with radically different plan after 9.0 -> 9.2 upgrade