Re: [PERFORM] Seq scan on zero-parameters function

Поиск
Список
Период
Сортировка
От Octavio Alvarez
Тема Re: [PERFORM] Seq scan on zero-parameters function
Дата
Msg-id 3080.192.168.0.64.1076088292.squirrel@alvarezp.ods.org
обсуждение исходный текст
Ответ на Re: [PERFORM] Seq scan on zero-parameters function  (Tomasz Myrta <jasiek@klaster.net>)
Список pgsql-sql
Tomasz Myrta said:
> Dnia 2004-02-06 09:43, U¿ytkownik Octavio Alvarez napisa³:
>> Thanks for the hint.
>>
>> In fact, my current_period_id() is based on time, but it should be
>> constant along the query execution. I mean, I don't want some records
>> filtered with some values and other with other values... I'll have an
>> uncongruent recordset.
>
> Well - you didn't read the chapter I noticed you, did you?

Huummm.. No... :-$

But now I did. Although the chapter makes it look as "how will the
optimizer think the function behaves", not "how the function actually
behaves".

But thanks. It's a lot clearer now. I assume that if I want to make
"timeofday" have a stable-behavior, I must enclose it in a sub-query. Am I
right?

-- 
Octavio Alvarez.
E-mail: alvarezp@alvarezp.ods.org.

Agradezco que sus correos sean enviados siempre a esta dirección.


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

Предыдущее
От: Jeff Boes
Дата:
Сообщение: Re: Cool ORDER BY feature
Следующее
От: "Peter Galbavy"
Дата:
Сообщение: techniques for manual ordering of data ?