Re: pl/pgsql slowness - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: pl/pgsql slowness
Date
Msg-id 3A1959F9.26B53770@tm.ee
Whole thread Raw
In response to pl/pgsql slowness  (Hannu Krosing <hannu@tm.ee>)
List 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 by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: Table/Column Constraints
Next
From: "Ross J. Reedstrom"
Date:
Subject: Re: Table/Column Constraints