Re: Explaining functions.

Поиск
Список
Период
Сортировка
Искать
От
Merlin Moncure
Тема
Re: Explaining functions.
Дата
Msg-id
b42b73150906230619n8827613v94197cce18acc0d8@mail.gmail.com
Ответ на
Explaining functions. (Hartman, Matthew)
Список
Дерево обсуждения
Graphical representation of query plans Viktor Rosenfeld <rosenfel@informatik.hu-berlin.de>
Re: Graphical representation of query plans Grzegorz Jaśkiewicz <gryzman@gmail.com>
Re: Graphical representation of query plans Emi Lu <emilu@encs.concordia.ca>
Re: Graphical representation of query plans Guillaume Lelarge <guillaume@lelarge.info>
Re: Graphical representation of query plans Emi Lu <emilu@encs.concordia.ca>
Re: Graphical representation of query plans Raymond O'Donnell <rod@iol.ie>
Re: Graphical representation of query plans Viktor Rosenfeld <rosenfel@informatik.hu-berlin.de>
Re: Graphical representation of query plans Dragan Sahpaski <dragan.sahpaskix@gmail.com>
Re: Graphical representation of query plans Viktor Rosenfeld <rosenfel@informatik.hu-berlin.de>
Explaining functions. "Hartman, Matthew" <Matthew.Hartman@krcc.on.ca>
Re: Explaining functions. Greg Smith <gsmith@gregsmith.com>
Re: Explaining functions. Merlin Moncure <mmoncure@gmail.com>
Re: Explaining functions. Tom Lane <tgl@sss.pgh.pa.us>
Re: Explaining functions. Dave Page <dpage@pgadmin.org>
Re: Explaining functions. "Hartman, Matthew" <Matthew.Hartman@krcc.on.ca>
Re: Explaining functions. "Chris Spotts" <rfusca@gmail.com>
Re: Explaining functions. "Hartman, Matthew" <Matthew.Hartman@krcc.on.ca>
On Tue, Jun 23, 2009 at 8:03 AM, Hartman,
Matthew wrote:
> Is there a recommended approach when trying to use EXPLAIN on a
> function? Specifically, a function that is more than the typical SELECT
> statement or tiny loop. The one in question that I'm hoping to optimize
> is around 250 lines.

What I normally do for benchmarking of complex functions is to
sprinkle the source with "raise notice '%', timeofday();" to figure
out where the bottlenecks are.  Following that, I micro-optimize
problem queries or expressions outside of the function body in psql.

merlin
В списке pgsql-general по дате отправления
От: Dave Page
Дата:
Сообщение: Re: [BUGS] Integrity check
От: David Fetter
Дата:
Сообщение: Re: [BUGS] Integrity check
FAQ