Re: [GENERAL] How can i get information about postgres-process? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: [GENERAL] How can i get information about postgres-process?
Date
Msg-id 199812111620.LAA12386@candle.pha.pa.us
Whole thread Raw
In response to How can i get information about postgres-process?  (Blashko Alexander <black@lins.ospu.odessa.ua>)
List pgsql-general
> Hi Everybody!
>
> We develop university information system under Linux using
> DBMS Postgres, Linux-clients (SWI-Prolog,C), MS-Windows-clients.
>
> For analysis of running postgres-processes
> we need get information: <user> <sql-query> <work time>.
> How can we get it?

On must platforms, the 'ps' command in 6.4 postgresql gives you current
user/database/query.  You can also use -d flag on postgres/postmaster to
see the queries.

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: "D'Arcy" "J.M." Cain
Date:
Subject: Announce: PyGreSQL 2.2
Next
From: Constantine Manoussakis
Date:
Subject: Date format