Re: Stable function semantics (was Re: Mislabeled timestamp functions)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Stable function semantics (was Re: Mislabeled timestamp functions)
Дата
Msg-id 7887.1096838845@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Mislabeled timestamp functions (was Re: [SQL] [NOVICE] date_trunc'd timestamp index possible?)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Oliver Jowett <oliver@opencloud.com> writes:
> Bruno Wolff III wrote:
>> I should have said within a single statement instead of within a single
>> transaction.

> As I understand Tom's earlier explanation of this, the definition is 
> even more narrow: stable functions only need to return the same value 
> across a single tablescan.

> It might be useful to have some variant of stable (or perhaps just a 
> change in semantics) such that the function returns the same value for 
> identical parameters until the next CommandCounterIncrement.

In practice I think these are equivalent definitions.
        regards, tom lane


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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: slow count() was: tsearch2 poor performance
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: AIX and V8 beta 3