Re: How to monitor the progress of a stored procedure?

Поиск
Список
Период
Сортировка
Искать
От
Colin Wetherbee
Тема
Re: How to monitor the progress of a stored procedure?
Дата
Msg-id
47C5F5D7.4000503@denterprises.org
Ответ на
Список
Дерево обсуждения
How to monitor the progress of a stored procedure? "Kynn Jones" <kynnjo@gmail.com>
Re: How to monitor the progress of a stored procedure? Erik Jones <erik@myemma.com>
Re: How to monitor the progress of a stored procedure? Colin Wetherbee <cww@denterprises.org>
Re: How to monitor the progress of a stored procedure? Klint Gore <kgore4@une.edu.au>
Kynn Jones wrote:
> I have a stored procedure that has been running for a very long time. 
>  Before doing the current "real" run, I tested the procedure on a toy 
> case and confirmed that it produced the right result.  So I know that 
> when it finishes it will be OK, but I can't tell whether it will finish 
> in an hour or in a century...  I have no idea of how far along it is. 
>  (In case it matters, the procedure is written in PL/perl.  I tried to 
> use Perl's print statement, unbuffered, to print out a message 
> periodically from within the procedure, but I see no output.)

When I print() from PL/Perl, the messages show up in the PostgreSQL log 
file.  It's not an obvious place, but it makes sense because PL/Perl 
functions aren't always called from interactive terminals.  Did you look 
there?

Colin
В списке pgsql-general по дате отправления
От: Erik Jones
Дата:
От: Simon Riggs
Дата:
Сообщение: PostgreSQL UK 2008 Conference
FAQ