Re: Partitioning feature ...

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Partitioning feature ...
Дата
Msg-id 49D25001.5080003@agliodbs.com
обсуждение исходный текст
Ответ на Re: Partitioning feature ...  (Emmanuel Cecchet <manu@asterdata.com>)
Список pgsql-hackers
On 3/31/09 9:45 AM, Emmanuel Cecchet wrote:
> Yes, there is a good reason. As a trigger can update the tuple value,
> this can change the routing decision. If you have a user trigger that
> tries to change the key value after the partition choice has been made,
> this will lead to an integrity constraint violation which is probably
> not what the user expects.

Actually, it's worse.  Depending on the timing of the triggers, it's 
possible to bypass the FK check entirely, and you can end up with 
inconsistent data.

--Josh


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: can't load plpython
Следующее
От: justin
Дата:
Сообщение: Re: [GENERAL] string_to_array with empty input