Problem analyzing performance of query

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Problem analyzing performance of query
Date: 2004-08-17 21:18:53
Message-ID: 878ycdh39e.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2004-08-17 21:23:57 Re: pg_dump feature request: Exclude tables?
Previous Message Glen Parker 2004-08-17 21:17:06 pg_dump feature request: Exclude tables?