Re: table contraints checks only happen in planner phase

Josh Berkus <josh@agliodbs.com>

From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Date: 2011-04-01T17:32:24Z
Lists: pgsql-performance
On 3/31/11 5:41 PM, Joseph Shraibman wrote:
> Is there a reason that when executing queries the table constraints are
> only checked during planning and not execution?  I end up making 2 round
> trips to the database to get around this.

This is a limitation with our current partitioning implementation.  It
only understands literal values, not JOINs.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com