Re: How to get the PID associated with a Perl DBI dbh?

Поиск
Список
Период
Сортировка
От Joshua Tolley
Тема Re: How to get the PID associated with a Perl DBI dbh?
Дата
Msg-id 20090312142713.GG24273@eddie
обсуждение исходный текст
Ответ на Re: How to get the PID associated with a Perl DBI dbh?  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-general
On Thu, Mar 12, 2009 at 03:13:13PM +0100, A. Kretschmer wrote:
> In response to Kynn Jones :
> > Is there a reliable way to find out the (Unix) PID associated with a database
> > handle generated by Perl DBI's database connection?
>
> You can ask the pg_stat_activity - View, column procpid.

The query "select pg_backend_pid()" issued through that handle will also
return the PID.

- Josh / eggyknap

Вложения

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

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: How to get the PID associated with a Perl DBI dbh?
Следующее
От: Martin Gainty
Дата:
Сообщение: Re: How to get the PID associated with a Perl DBI dbh?