Re: PID for the conection

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: PID for the conection
Дата
Msg-id 200401150938.36451.dev@archonet.com
обсуждение исходный текст
Ответ на PID for the conection  ("Jose G. Mendoza" <unixos@prodigy.net.mx>)
Список pgsql-odbc
On Thursday 15 January 2004 06:44, Jose G. Mendoza wrote:
> How can I obtain the PID for each thread or user connection to the
> PostgreSQL from the client side?
> I'm using the odbc to connect the client application to the PostgreSQL.

Is this what you're after?

SELECT * FROM pg_stat_activity ;
 datid | datname  | procpid | usesysid | usename  | current_query
-------+----------+---------+----------+----------+---------------
 17048 | richardh |   30681 |      100 | richardh | <IDLE>

--
  Richard Huxton
  Archonet Ltd

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

Предыдущее
От: "Jose G. Mendoza"
Дата:
Сообщение: PID for the conection
Следующее
От: "Denis"
Дата:
Сообщение: Initially Deferred - FK