Re: partitioned table query question

From: Vivek Khera <khera(at)kcilink(dot)com>
To: PGSQL Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: partitioned table query question
Date: 2007-12-11 17:24:12
Message-ID: 0178E1E7-9CB6-403F-A000-334AAA13327F@kcilink.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers


On Dec 11, 2007, at 10:44 AM, Gregory Stark wrote:

> The problem Tom's tried to explain is that the function may or may not
> preserve the bin. So for example if you wanted to bin based on the
> final digit
> of a numeric number, so you had a constraint like

I, along with at least Erik, was thinking that the constraint
expression would be evaluated to determine whether to include the
partition in the final plan. Based on Tom's description, it is not
the case: the planner basically proves that the constraint will be
false. Until this was clarified, Tom's points totally confused the
heck out of me.

It would be amazingly wonderful if this distinction could be posted to
the online docs. It will surely help future generations :-)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2007-12-11 17:24:53 Re: POSIX and libpq
Previous Message Andrew Sullivan 2007-12-11 17:23:52 Re: top posting (was: Hijack!)

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-12-11 17:45:44 Re: partitioned table query question
Previous Message Erik Jones 2007-12-11 17:18:54 Re: partitioned table query question