Re: [HACKERS] How to find a number of connections

2005-11-14 Thread Jim C. Nasby
It would be better to ask this on -general, but SELECT count(*) FROM pg_stat_activity; is what you want. On Fri, Nov 11, 2005 at 12:35:28PM -0500, Brusser, Michael wrote: > Is there a way to find a number of current connections on Postgres 7.3.x > ? > > I looked at some system tables and views,

Re: [HACKERS] How to find a number of connections

2005-11-12 Thread Alvaro Herrera
Tom Lane wrote: > "Brusser, Michael" <[EMAIL PROTECTED]> writes: > > One process is really postmaster, the others seem to be doing some > > house chores: stats buffer process and stats collector process. > > Do they actually use connections, > > No. But note that in 8.1, autovacuum does. -- Alv

Re: [HACKERS] How to find a number of connections

2005-11-12 Thread Tom Lane
"Brusser, Michael" <[EMAIL PROTECTED]> writes: > One process is really postmaster, the others seem to be doing some > house chores: stats buffer process and stats collector process. > Do they actually use connections, No. regards, tom lane ---(end

Re: [HACKERS] How to find a number of connections

2005-11-12 Thread Brusser, Michael
Thank you, this is very handy. I'd like to understand why the result of this query is different from the number of Postgres processes reported by `ps`. (The query returns 8, ps shows 11) One process is really postmaster, the others seem to be doing some house chores: stats buffer process and stats

Re: [HACKERS] How to find a number of connections

2005-11-11 Thread Bryan White
Brusser, Michael wrote: Is there a way to find a number of current connections on Postgres 7.3.x ? select count(*) from pg_stat_activity -- Bryan White, ArcaMax Publishing Inc. I never look back, darling. it distracts from the now. - Edna Mode ---(end of broadcast)---

Re: [HACKERS] How to find a number of connections

2005-11-11 Thread Brusser, Michael
Please disregard this duplicate submission, my mistake. Mike   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brusser, Michael Sent: Friday, November 11, 2005 12:35 PM To: pgsql-hackers@postgresql.org Subject: [HACKERS] How to find a number of connections

[HACKERS] How to find a number of connections

2005-11-11 Thread Brusser, Michael
Is there a way to find a number of current connections on Postgres 7.3.x ? I looked at some system tables and views, but did not see anything obvious.   Thank you, Mike  

Re: [HACKERS] How to find a number of connections

2005-11-11 Thread Bruno Wolff III
On Fri, Nov 11, 2005 at 15:09:41 -0500, "Brusser, Michael" <[EMAIL PROTECTED]> wrote: > Is there a way to find a number of current connections on Postgres 7.3.x > ? This might help you: http://www.postgresql.org/docs/7.3/static/monitoring.html ---(end of broadcast)--

[HACKERS] How to find a number of connections

2005-11-11 Thread Brusser, Michael
Is there a way to find a number of current connections on Postgres 7.3.x ? Thank you, Mike ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster