Re: for/loop performance in plpgsql ?

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: for/loop performance in plpgsql ?
Дата
Msg-id 200211151337.25980.richardh@archonet.com
обсуждение исходный текст
Ответ на for/loop performance in plpgsql ?  (Federico <fepede@inwind.it>)
Ответы Re: for/loop performance in plpgsql ?  (Federico <fepede@inwind.it>)
Список 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

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

Предыдущее
От: Cedric Dufour (Cogito Ergo Soft)
Дата:
Сообщение: Re: [GENERAL] Upgrade to dual processor machine?
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: [GENERAL] Upgrade to dual processor machine?