Re: Partitions not Working as Expected - Mailing list pgsql-performance

From Shaun Thomas
Subject Re: Partitions not Working as Expected
Date
Msg-id 51CC8160.2080905@optionshouse.com
Whole thread Raw
In response to Re: Partitions not Working as Expected  (Dave Johansen <davejohansen@gmail.com>)
Responses Re: Partitions not Working as Expected  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Partitions not Working as Expected  ("Albin, Lloyd P" <lalbin@scharp.org>)
List pgsql-performance
On 06/27/2013 12:42 PM, Dave Johansen wrote:

> Or what about something like DATE_TRUNC("DAY", now())? Or would that run
> into the same optimization/planner problems as CURRENT_DATE?

Same issue. This seems to work, though I'm not entirely sure of the
implications:

UPDATE pg_proc
    SET provolatile = 'i'
  WHERE proname = 'date_in';

--
Shaun Thomas
OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604
312-676-8870
sthomas@optionshouse.com

______________________________________________

See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email


pgsql-performance by date:

Previous
From: Dave Johansen
Date:
Subject: Re: Partitions not Working as Expected
Next
From: Tom Lane
Date:
Subject: Re: Partitions not Working as Expected