Received: from executor.fornax.net ([202.174.32.114]) by postgresql.org (8.11.3/8.11.4) with SMTP id f9I1CwP25150 for ; Wed, 17 Oct 2001 21:12:58 -0400 (EDT) (envelope-from list@fornax.net) Received: (qmail 23516 invoked from network); 18 Oct 2001 01:12:53 -0000 Received: from adl-office.airnet.com.au (HELO fornax.net) (202.174.32.66) by 202.174.32.114 with SMTP; 18 Oct 2001 01:12:53 -0000 Message-ID: <3BCE2C95.6020002@fornax.net> Date: Thu, 18 Oct 2001 10:42:53 +0930 From: Andrew Hill User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010913 X-Accept-Language: en-us MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Freeing Connections Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200110/166 X-Sequence-Number: 2410 Hi, Sorry if this has been covered before, but I haven't been able to find any information about it. I'm running PostgreSQL 7.0.3 with the following command: postmaster -i -D/var/pgsql/data -N 32 -B 64 Normally, 32 connections is heaps for what I need. However, I often get connections that seem to be doing nothing. For example: [bash] \_ postmaster -i -D/var/pgsql/data -N 32 -B 64 \_ [postmaster] \_ /var/pgsql/bin/postgres 202.174.32.67 postgres anb idle \_ /var/pgsql/bin/postgres 202.174.32.68 postgres anb idle \_ [postmaster] \_ /var/pgsql/bin/postgres 203.34.190.137 postgres bmf idle \_ [postmaster] \_ [postmaster] \_ [postmaster] \_ [postmaster] \_ /var/pgsql/bin/postgres 202.174.32.8 radius bmf idle \_ /var/pgsql/bin/postgres 203.34.190.137 postgres bmf idle \_ /var/pgsql/bin/postgres 202.174.32.66 postgres bmf idle \_ /var/pgsql/bin/postgres 203.34.190.137 postgres bmf idle \_ /var/pgsql/bin/postgres 203.34.190.137 postgres bmf idle \_ /var/pgsql/bin/postgres localhost postgres bmf idle \_ /var/pgsql/bin/postgres 202.174.32.66 postgres bmf idle \_ logger -p local5.notice The "idle" connections are from boxes that are using PHP's pg_pconnect to connect to the database, so that's no problem. However, it the [postmaster] entries that worry me - over time, these just increase in number until I start getting connections refused. Can anyone please help me with what these are, and how to stop them accumulating? TIA! -- Andrew Hill "RAID - Don't believe the hype." -- 2001-09-22