Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id C1F24B60A49 for ; Tue, 31 May 2011 15:35:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 71151-06 for ; Tue, 31 May 2011 18:35:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from shrek.krogh.cc (2605ds1-ynoe.0.fullrate.dk [90.184.12.24]) by mail.postgresql.org (Postfix) with ESMTP id 9BC47B6062E for ; Tue, 31 May 2011 15:35:22 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by shrek.krogh.cc (Postfix) with ESMTP id 0E3241CDF50 for ; Tue, 31 May 2011 20:35:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at shrek.krogh.cc Received: from shrek.krogh.cc ([127.0.0.1]) by localhost (shrek.krogh.cc [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mVkb1+P-5vGa for ; Tue, 31 May 2011 20:35:18 +0200 (CEST) Received: from [90.184.13.151] (2605ds1-ynoe.2.fullrate.dk [90.184.13.151]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jesper@krogh.cc) by shrek.krogh.cc (Postfix) with ESMTPSA id 455F6335889 for ; Tue, 31 May 2011 20:35:18 +0200 (CEST) Message-ID: <4DE534E2.6000101@krogh.cc> Date: Tue, 31 May 2011 20:35:14 +0200 From: Jesper Krogh User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: High-water Mark for number of sessions/connections reached in Postgres References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------000705040601040900070505" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201105/187 X-Sequence-Number: 37624 This is a multi-part message in MIME format. --------------000705040601040900070505 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > I was wondering if we can query/obtain the high-water mark of number > of sessions or connections reached in a Postgres database. Is there a > view or command that can provide this information. The > pg_stat_database shows the current number of connections, but not the > high-water mark a database had reached. Like "show max_connections" Jesper --------------000705040601040900070505 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > I was wondering if we can query/obtain the high-water mark of number
> of sessions or connections reached in a Postgres database. Is there a
> view or command that can provide this information. The
> pg_stat_database shows the current number of connections, but not the
> high-water mark a database had reached.

Like "show max_connections"

Jesper

--------------000705040601040900070505--