Skip site navigation (1) Skip section navigation (2)

Re: [GENERAL] Why extract( ... from timestamp ) is not immutable?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: depesz(at)depesz(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] Why extract( ... from timestamp ) is not immutable?
Date: 2012-01-31 04:29:44
Message-ID: 24935.1327984184@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-hackers
Josh Berkus <josh(at)agliodbs(dot)com> writes:
> On 1/30/12 5:41 PM, Tom Lane wrote:
>> Well, the current marking is clearly incorrect.  What to do about that
>> is a bit less clear --- should we downgrade the marking, or change the
>> function's behavior so that it really is immutable?

> AFAIK, the only case which is NOT immutable is extract(epoch FROM
> timestamp without time zone), no?

That's the only one we currently know is not immutable.  But before we
make any decisions, I think it'd be a good idea to scrutinize all the
other cases too, because obviously this area has gotten some careless
hacking (*) done on it in the past.

			regards, tom lane

(*) I have a nasty feeling that the carelessness was mine.

In response to

pgsql-hackers by date

Next:From: Joachim WielandDate: 2012-01-31 05:55:04
Subject: Re: patch for parallel pg_dump
Previous:From: Tom LaneDate: 2012-01-31 04:18:31
Subject: Re: pg_dump -s dumps data?!

pgsql-general by date

Next:From: Edwin QuijadaDate: 2012-01-31 05:04:36
Subject: HELP - compiling C functions for wiondws
Previous:From: Tom LaneDate: 2012-01-31 04:18:31
Subject: Re: pg_dump -s dumps data?!

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group