Problem analyzing performance of query

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Problem analyzing performance of query
Дата
Msg-id 878ycdh39e.fsf@stark.xeocode.com
обсуждение исходный текст
Ответы Re: Problem analyzing performance of query
Список 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 по дате отправления: