Re: Partitioning feature ... - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: Partitioning feature ...
Date
Msg-id 49D25001.5080003@agliodbs.com
Whole thread Raw
In response to Re: Partitioning feature ...  (Emmanuel Cecchet <manu@asterdata.com>)
List 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 by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: can't load plpython
Next
From: justin
Date:
Subject: Re: [GENERAL] string_to_array with empty input