Skip site navigation (1) Skip section navigation (2)

Re: [GENERAL] How can i get information about postgres-process?

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: black(at)lins(dot)ospu(dot)odessa(dot)ua (Blashko Alexander)
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] How can i get information about postgres-process?
Date: 1998-12-11 16:20:35
Message-ID: 199812111620.LAA12386@candle.pha.pa.us (view raw or flat)
Thread:
Lists: 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(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

In response to

pgsql-general by date

Next:From: Constantine ManoussakisDate: 1998-12-11 16:38:46
Subject: Date format
Previous:From: D'Arcy J.M. CainDate: 1998-12-11 12:34:58
Subject: Announce: PyGreSQL 2.2

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group