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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] Why extract( ... from timestamp ) is not immutable?
Дата
Msg-id 24935.1327984184@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] Why extract( ... from timestamp ) is not immutable?  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-hackers
Josh Berkus <josh@agliodbs.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.


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] pg_dump -s dumps data?!
Следующее
От: Joachim Wieland
Дата:
Сообщение: Re: patch for parallel pg_dump