pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Finding active connections to postmaster
5+ messages / 5 participants
[nested] [flat]

* Finding active connections to postmaster
@ 2001-09-27 08:22  Doobee R. Tzeck <drt@un.bewaff.net>
  0 siblings, 4 replies; 5+ messages in thread

From: drt@un.bewaff.net @ 2001-09-27 08:22 UTC (permalink / raw)
  To: pgsql-admin


I want to list which users are conected to postmaster and what
they are doing. I guess I have overseen something but I wasn't
able to find any information on doing this in the handbook, FAQ
or mailinglist archives.

Is it possible to list active connectons? How?

drt

-- 
"Before the Internet, a certain breed of deconstructionists had a lot of fun
telling everybody that "privileging of dominant paradigms" was wrecking the
world. The Internet has taught us that privileging certain views is
absolutely crucial to avoid drowning in the ravings of idiots." -Keunwoo Lee




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Finding active connections to postmaster
@ 2001-09-27 09:20  Bramsi Prenata <bramsi@cakraweb.com>
  parent: Doobee R. Tzeck <drt@un.bewaff.net>
  3 siblings, 0 replies; 5+ messages in thread

From: Bramsi Prenata @ 2001-09-27 09:20 UTC (permalink / raw)
  To: pgsql-admin

On 27 Sep 2001 10:22:02 +0200
drt@un.bewaff.net (Doobee R. Tzeck) wrote:

> 
> I want to list which users are conected to postmaster and what
> they are doing. I guess I have overseen something but I wasn't
> able to find any information on doing this in the handbook, FAQ
> or mailinglist archives.
> 
> Is it possible to list active connectons? How?

to list active connection, you can try this command in shell prompt

[bramsi@al-quds bramsi]$ ps ax | grep postgres | grep -v grep | grep -v psql | awk -F " " {'print $7'}
postgres

but i'm sorry, i do not know what they are doing rigth now.

Hope can help you.

Best regards,
Bramsi Prenata




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Finding active connections to postmaster
@ 2001-09-27 09:35  Martins Zarins <mark@vestnesis.lv>
  parent: Doobee R. Tzeck <drt@un.bewaff.net>
  3 siblings, 0 replies; 5+ messages in thread

From: Martins Zarins @ 2001-09-27 09:35 UTC (permalink / raw)
  To: pgsql-admin

On 27 Sep 2001, at 10:22, Doobee R. Tzeck wrote:

> 
> I want to list which users are conected to postmaster and what
> they are doing. I guess I have overseen something but I wasn't
> able to find any information on doing this in the handbook, FAQ
> or mailinglist archives.
> 
> Is it possible to list active connectons? How?
> 
> drt
ps aux |grep postgres

Mark



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Finding active connections to postmaster
@ 2001-09-27 14:13  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Doobee R. Tzeck <drt@un.bewaff.net>
  3 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2001-09-27 14:13 UTC (permalink / raw)
  To: drt@un.bewaff.net; +Cc: pgsql-admin

drt@un.bewaff.net (Doobee R. Tzeck) writes:
> Is it possible to list active connectons? How?

7.2 will have a better solution to this (SELECT * FROM pg_stat_activity).

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Finding active connections to postmaster
@ 2001-10-02 17:12  Tony Reina <reina@nsi.edu>
  parent: Doobee R. Tzeck <drt@un.bewaff.net>
  3 siblings, 0 replies; 5+ messages in thread

From: reina@nsi.edu @ 2001-10-02 17:12 UTC (permalink / raw)
  To: pgsql-admin

> Is it possible to list active connectons? How?
> 

This will give a unique list of the names of those logged on:

echo Current users logged onto database:
ps ax | grep postgres: | awk '{print $6 | "sort" } ' | uniq


This will list the user and what process is being done:

ps ax | grep postgres: | awk '{print $6 ":"  $9 " on " $7}'


HTH,
-Tony



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2001-10-02 17:12 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-09-27 08:22 Finding active connections to postmaster Doobee R. Tzeck <drt@un.bewaff.net>
2001-09-27 09:20 ` Bramsi Prenata <bramsi@cakraweb.com>
2001-09-27 09:35 ` Martins Zarins <mark@vestnesis.lv>
2001-09-27 14:13 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-10-02 17:12 ` Tony Reina <reina@nsi.edu>

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