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

From: "Octavio Alvarez" <alvarezp(at)alvarezp(dot)ods(dot)org>
To: "Tomasz Myrta" <jasiek(at)klaster(dot)net>
Cc: "Lista dyskusyjna pgsql-sql" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: [PERFORM] Seq scan on zero-parameters function
Date: 2004-02-06 17:24:52
Message-ID: 3080.192.168.0.64.1076088292.squirrel@alvarezp.ods.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance 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(at)alvarezp(dot)ods(dot)org(dot)

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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Karl Denninger 2004-02-06 21:36:02 Why is query selecting sequential?
Previous Message Stephan Szabo 2004-02-06 17:13:42 Re: RE : Increase performance of a UNION query that thakes

Browse pgsql-sql by date

  From Date Subject
Next Message Chris Fisher 2004-02-06 20:17:11 Re: Storing a range of numbers
Previous Message Mona H. Kapadia 2004-02-06 17:15:19 unsubscribe