Re: Constraint exclusion for timestamp expression

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Victor Yegorov <vyegorov(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Constraint exclusion for timestamp expression
Date: 2014-05-20 11:26:55
Message-ID: 11651.1400585215@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Victor Yegorov <vyegorov(at)gmail(dot)com> writes:
> How can I enforce pruning to kick in for the initial expressions?

You already found out: use constants. The planner can't remove
partitions on the basis of clauses involving volatile, or even
stable, functions, because their results might be different at
runtime.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Victor Yegorov 2014-05-20 12:38:29 Re: Constraint exclusion for timestamp expression
Previous Message Victor Yegorov 2014-05-20 11:14:54 Constraint exclusion for timestamp expression