Re: Partitioned tables constraint_exclusion

From: "Simon Riggs" <simon(at)2ndquadrant(dot)com>
To: "Weslee Bilodeau" <weslee(dot)bilodeau(at)hypermediasystems(dot)com>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Partitioned tables constraint_exclusion
Date: 2007-03-26 18:59:54
Message-ID: 1174935595.6069.402.camel@silverbirch.site
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 2007-03-26 at 09:38 -0700, Weslee Bilodeau wrote:

> mytest=# explain select count(*) from master where var_ts > (
> '2007-03-26 16:03:27.370627+00'::timestamptz - '1 month'::interval
> )::timestamptz ;

If you're able to supply a constant value, why not subtract 1 month
before you submit the query?

AFAIK timestamptz arithmetic depends upon the current timezone which is
a STABLE value and so won't currently work with partitioning.

Having partitioning work with STABLE functions should be a TODO item if
it isn't already, but that requires some thought to implement and won't
happen for 8.3.

--
Simon Riggs
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2007-03-26 19:05:01 Re: Time to package 8.2.4
Previous Message Dave Page 2007-03-26 18:56:37 Re: Time to package 8.2.4