> 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026