clarify constraint exclusion vs prepared statements

From: john(dot)christofolakos(at)gmail(dot)com
To: pgsql-docs(at)postgresql(dot)org
Subject: clarify constraint exclusion vs prepared statements
Date: 2017-04-27 20:23:03
Message-ID: 20170427202303.24360.26831@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.2/static/ddl-partitioning.html
Description:

Section 5.9.6 of the documentation discusses caveats re use of constraint
exclusion on partitioned tables. It seems the restriction that the query
constraints must be expressed in terms of constants has been lifted, and now
constraints may be expressed in terms of parameterised values.

I'm wondering if the restriction would still apply, though, in the case that
the query is being prepared in advance, then the constraint value passed in
as a parameter at execution time. It seems to me that constraint exclusion
would not be applied in this case, but would like clarification on this
point.

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Peter Eisentraut 2017-05-02 16:35:06 release date formatting
Previous Message Bruce Momjian 2017-04-27 14:20:39 Re: display should be displayed