Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gNJjV-0007Ce-IN for pgsql-general@arkaria.postgresql.org; Thu, 15 Nov 2018 15:39:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gNJjS-0003VK-CK for pgsql-general@arkaria.postgresql.org; Thu, 15 Nov 2018 15:39:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gNJjS-0003Ud-0n for pgsql-general@lists.postgresql.org; Thu, 15 Nov 2018 15:39:02 +0000 Received: from mail.i-mark.de ([188.138.104.222]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gNJjO-0005HV-Ow for pgsql-general@lists.postgresql.org; Thu, 15 Nov 2018 15:39:00 +0000 Received: from [192.168.178.20] (unknown [185.38.49.17]) by mail.i-mark.de (Postfix) with ESMTPSA id 85F9315812FD for ; Thu, 15 Nov 2018 16:38:51 +0100 (CET) Authentication-Results: loft7616.startdedicated.de; spf=pass (sender IP is 185.38.49.17) smtp.mailfrom=andreas@a-kretschmer.de smtp.helo=[192.168.178.20] Received-SPF: pass (loft7616.startdedicated.de: connection is authenticated) Subject: Re: db-connections (application architecture) To: pgsql-general@lists.postgresql.org References: From: Andreas Kretschmer Message-ID: <4e2ad874-8ee5-ae03-8822-6ba237d56e70@a-kretschmer.de> Date: Thu, 15 Nov 2018 16:38:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Am 15.11.2018 um 16:14 schrieb Andreas Kretschmer: > > > Am 15.11.2018 um 16:09 schrieb Mark Moellering: >> I can see how, for only a few (hundreds to thousands) of users, the >> latter might make more sense but if I need to scale up to millions, I >> might not want all of those connections open. > > consider a connection-pooler like phbouncer. > typo, should be pgbouncer ;-) > > Regards, Andreas > -- 2ndQuadrant - The PostgreSQL Support Company. www.2ndQuadrant.com