Re: pl/pgsql slowness

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: pl/pgsql slowness
Дата
Msg-id 3A1959F9.26B53770@tm.ee
обсуждение исходный текст
Ответ на pl/pgsql slowness  (Hannu Krosing <hannu@tm.ee>)
Список pgsql-hackers
Tom Lane wrote:
> 
> Hannu Krosing <hannu@tm.ee> writes:
> > Is it normal that a query that takes <1 sec when executed from psql
> > prompt takes > 15 sek when executed from a function
> 
> No.  I can't reproduce the quoted misbehavior under either 7.0.2 or
> current sources; your example takes ~1 sec either way for me.

Sorry, my fault. 

I ran the queries over two similar tables, but the slow one had several
huge indexes on it.
They had grown huge over time and vacuum did nothing to reduce them. 

So it seems that it had nithing to do with plpgsql.

-----------
Hannu


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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: Table/Column Constraints
Следующее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: Table/Column Constraints