pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: john.christofolakos@gmail.com
To: pgsql-docs@postgresql.org
Subject: clarify constraint exclusion vs prepared statements
Date: Thu, 27 Apr 2017 20:23:03 +0000
Message-ID: <20170427202303.24360.26831@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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&#39;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.

-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs


view thread (2+ messages)  latest in thread

Message-ID: <20170427202303.24360.26831@wrigleys.postgresql.org>
Permalink:  ../20170427202303.24360.26831@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20170427202303.24360.26831@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: john.christofolakos@gmail.com
  Subject: Re: clarify constraint exclusion vs prepared statements
  In-Reply-To: <20170427202303.24360.26831@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox