Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 06CC19FA4E5 for ; Thu, 9 Nov 2006 13:55:52 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 34452-01 for ; Thu, 9 Nov 2006 13:55:46 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by postgresql.org (Postfix) with ESMTP id 08B579FA380 for ; Thu, 9 Nov 2006 13:55:44 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so257594ugf for ; Thu, 09 Nov 2006 09:55:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dkg5K8++tKE15KZf8Zhvt45wsbEeqEdBdpWgviMpiOazFJLOk2RsE4wRMdG/bHBKgUEArOExZWWTYPxboF1iHGvjZjkjWGBg6OwAcWxtr1+4TR8oVcUUSbZFXWz4yO9TczVIvYOf/+zuJKl195nwFsS+VJL9pGpnyqgrg7LNQVU= Received: by 10.82.111.8 with SMTP id j8mr186033buc.1163094941054; Thu, 09 Nov 2006 09:55:41 -0800 (PST) Received: by 10.82.161.3 with HTTP; Thu, 9 Nov 2006 09:55:41 -0800 (PST) Message-ID: <1f30b80c0611090955h567bd4bboa3cfc60ec7bd8dd9@mail.gmail.com> Date: Thu, 9 Nov 2006 22:55:41 +0500 From: imad To: "Hilary Forbes" Subject: Re: Keeping processes open for re-use Cc: pgsql-performance@postgresql.org In-Reply-To: <5.1.0.14.0.20061109123348.0418fbb8@mailserver.dmr.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5.1.0.14.0.20061109123348.0418fbb8@mailserver.dmr.co.uk> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/89 X-Sequence-Number: 21859 Yes. This is connection pooling. You can find a lot of examples from the internet on connection pooling, rather source codes. Also keep in mind that connection pools can be maintained on the application as well as the database server side. Check which one suits you. --Imad www.EnterpriseDB.com On 11/9/06, Hilary Forbes wrote: > Dear All > > Looking at the processes running on our server, it appears that each time a > web server program makes a call to the database server, we start a new > process on the database server which obviously has a start up cost. In > Apache, for example, you can say at start up time,that you want the machine > to reserve eg 8 processes and keep them open at all times so you don't have > this overhead until you exceed this minimum number. Is there a way that we > can achieve this in Postgres? We have a situation whereby we have lots of > web based users doing short quick queries and obviously the start up time > for a process must add to their perceived response time. > > Thanks > Hilary > > > > > > Hilary Forbes > DMR Limited (UK registration 01134804) > A DMR Information and Technology Group company (www.dmr.co.uk) > Direct tel 01689 889950 Fax 01689 860330 > DMR is a UK registered trade mark of DMR Limited > **********************************************************