Re: Current query of the PL/pgsql procedure.
От
Andrew Dunstan
Тема
Re: Current query of the PL/pgsql procedure.
Дата
Msg-id
52AF0037.4020909@dunslane.net
Ответ на
Re: Current query of the PL/pgsql procedure. (hubert depesz lubaczewski)
Список
Дерево обсуждения
Current query of the PL/pgsql procedure. Yuri Levinsky <yuril@celltick.com>
Re: Current query of the PL/pgsql procedure. hubert depesz lubaczewski <depesz@depesz.com>
Re: Current query of the PL/pgsql procedure. Andrew Dunstan <andrew@dunslane.net>
Re: Current query of the PL/pgsql procedure. Yuri Levinsky <yuril@celltick.com>
Re: Current query of the PL/pgsql procedure. Guillaume Lelarge <guillaume@lelarge.info>
Re: Current query of the PL/pgsql procedure. Craig James <cjames@emolecules.com>
Re: Current query of the PL/pgsql procedure. Matheus de Oliveira <matioli.matheus@gmail.com>
On 12/16/2013 05:26 AM, hubert depesz lubaczewski wrote: > On Sun, Dec 15, 2013 at 04:18:18PM +0000, Yuri Levinsky wrote: >> Dear ALL, >> I am running PL/pgsql procedure with sql statements that taking a long >> time. I able to see them in the log just after their completion. How >> can I see currently running SQL statement? I am able to see in >> pg_stat_activity only my call to function. Many thanks in advance. > pg_stat_activity and pg logs, can't see what your function does > internally. > > What you can do, though, is to add some "RAISE LOG" to the function, so > that it will log its progress. > > Check this for example: > http://www.depesz.com/2010/03/18/profiling-stored-proceduresfunctions/ > Also, the auto-explain module can peer inside functions. See cheers andrew
В списке pgsql-performance по дате отправления
От: Joe Van Dyk
Дата: