Re: for/loop performance in plpgsql ?

From: Richard Huxton <richardh(at)archonet(dot)com>
To: Federico <fepede(at)inwind(dot)it>, pgsql-performance(at)postgresql(dot)org
Subject: Re: for/loop performance in plpgsql ?
Date: 2002-11-15 13:37:25
Message-ID: 200211151337.25980.richardh@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Friday 15 Nov 2002 12:31 pm, Federico wrote:
> Hi all,
>
> i've a doubt about how FOR/LOOP works in plpgsql.
>
> It seems to me that the SELECT query executed in that way is much slower
> that the same being executed interactively in psql.
>
> In particular it seems that it doesn't make use of indexes.
>
> Does it have any sense or am i wrong/missing something ?

Well - the query might well be pre-parsed which means it wouldn't notice any
updated stats. Can you provide an example of your code?

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Andrew Sullivan 2002-11-15 14:34:59 Re: [GENERAL] Upgrade to dual processor machine?
Previous Message Cedric Dufour (Cogito Ergo Soft) 2002-11-15 13:37:01 Re: [GENERAL] Upgrade to dual processor machine?