Re: High-water Mark for number of sessions/connections reached in Postgres - Mailing list pgsql-admin

From Alvaro Herrera
Subject Re: High-water Mark for number of sessions/connections reached in Postgres
Date
Msg-id 1281393490-sup-5210@alvh.no-ip.org
Whole thread Raw
In response to Re: High-water Mark for number of sessions/connections reached in Postgres  (Scott Marlowe <scott.marlowe@gmail.com>)
Responses Re: High-water Mark for number of sessions/connections reached in Postgres
List pgsql-admin
Excerpts from Scott Marlowe's message of lun ago 09 18:29:58 -0400 2010:
> If you want a date stamp, you can change the ps ax stuff to look like this:
>
> date +"%Y-%m-%d %H:%M:%S"|tr "\n" ":";ps ax|grep postgres:|grep -v grep|wc -l

FWIW the "grep" business is best solved by ps itself, something like
ps ax -C postgres

date +"%Y-%m-%d %H:%M:%S"|tr "\n" ":";ps ax -C  postgres|wc -l

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-admin by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: High-water Mark for number of sessions/connections reached in Postgres
Next
From: "Tomeh, Husam"
Date:
Subject: Re: High-water Mark for number of sessions/connections reached in Postgres