Re: plpgsql plan cache - Mailing list pgsql-performance

From Pierre C
Subject Re: plpgsql plan cache
Date
Msg-id op.u8jnpjikeorkce@localhost
Whole thread Raw
In response to plpgsql plan cache  (Joel Jacobson <joel@gluefinance.com>)
Responses Re: plpgsql plan cache
List pgsql-performance
> I cannot understand why the index is not being used when in the plpgsql
> function?
> I even tried to make a test function containing nothing more than the
> single query. Still the index is not being used.
> When running the same query in the sql prompt, the index is in use
> though.

Please post the following :

- EXPLAIN ANALYZE your query directly in psql
- PREPARE testq AS your query
- EXPLAIN ANALYZE EXECUTE testq( your parameters )

pgsql-performance by date:

Previous
From: Joel Jacobson
Date:
Subject: plpgsql plan cache
Next
From: Joel Jacobson
Date:
Subject: Re: plpgsql plan cache