pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedPID for the conection
2+ messages / 2 participants
[nested] [flat]
* PID for the conection
@ 2004-01-15 06:44 Jose G. Mendoza <unixos@prodigy.net.mx>
0 siblings, 1 reply; 2+ messages in thread
From: Jose G. Mendoza @ 2004-01-15 06:44 UTC (permalink / raw)
To: pgsql-odbc
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: PID for the conection
@ 2004-01-15 09:38 Richard Huxton <dev@archonet.com>
parent: Jose G. Mendoza <unixos@prodigy.net.mx>
0 siblings, 0 replies; 2+ messages in thread
From: Richard Huxton @ 2004-01-15 09:38 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-01-15 09:38 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-01-15 06:44 PID for the conection Jose G. Mendoza <unixos@prodigy.net.mx>
2004-01-15 09:38 ` Richard Huxton <dev@archonet.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox