Problem analyzing performance of query - Mailing list pgsql-general

From Greg Stark
Subject Problem analyzing performance of query
Date
Msg-id 878ycdh39e.fsf@stark.xeocode.com
Whole thread Raw
Responses Re: Problem analyzing performance of query
List pgsql-general
I have a query that is taking too long when run from a larger plpgsql function
(40-50s). However when I explain analyze it under psql it runs fine (4-5s).
This is with the same parameters, and I've even tried embedding the parameters
inside a subquery to avoid letting the planner see any more info than normal.

Is there any way to ask the server what plan it's using when it's actually
executing the query in production, rather than trying to feed it the same
query later in another context and hope it gets the same result?

--
greg

pgsql-general by date:

Previous
From: "Glen Parker"
Date:
Subject: pg_dump feature request: Exclude tables?
Next
From: Bruce Momjian
Date:
Subject: Re: pg_dump feature request: Exclude tables?