Re: profiling plpgsql functions..

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: profiling plpgsql functions..
Дата
Msg-id 26413.1051626475@sss.pgh.pa.us
обсуждение исходный текст
Ответ на profiling plpgsql functions..  (Rajesh Kumar Mallah <mallah@trade-india.com>)
Ответы Re: profiling plpgsql functions..
Список pgsql-performance
Rajesh Kumar Mallah <mallah@trade-india.com> writes:
> Is printing timeofday() at various points a good idea
> of profiling plpgsql functions?

Sure.

> also is anything wrong with following fragment ?
> RAISE INFO '' % , message here ... '' , timeofday() ;

IIRC, RAISE is pretty slovenly implemented :-( ... it will only take
plain variable references as additional arguments.  So you'll have to
do

        var := timeofday();
        RAISE INFO ''... '', var;

I believe timeofday() produces TEXT, so declare the var that way.

            regards, tom lane


В списке pgsql-performance по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Optimizer not using index when it should
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Query Plan far worse in 7.3.2 than 7.2.1