Re: Fw: LISTENING THE PORT

Started by Tom Laneover 24 years ago1 messageshackers
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

=?iso-8859-1?Q?F=E1bio_Santana?= <fabio3c@terra.com.br> writes:

I need to do a application that listen the port of Postgresql
and return all commands actually in process in Postgresql.

In 7.2 beta, try select * from pg_stat_activity (note you need
to enable collection of query strings...)

regards, tom lane