Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9UHM-0006Rj-3t for pgsql-jdbc@arkaria.postgresql.org; Tue, 31 Oct 2017 11:00:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e9UHL-0005oQ-62 for pgsql-jdbc@arkaria.postgresql.org; Tue, 31 Oct 2017 11:00:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e9UHK-0005nn-IR for pgsql-jdbc@postgresql.org; Tue, 31 Oct 2017 11:00:18 +0000 Received: from host3.dynacom.ondsl.gr ([62.103.35.211] helo=smadev.internal.net) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e9UH8-0002fN-RT for pgsql-jdbc@postgresql.org; Tue, 31 Oct 2017 11:00:17 +0000 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id v9VB020G033117; Tue, 31 Oct 2017 13:00:02 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: Could pgsql jdbc support pool reauthentication? To: =?UTF-8?Q?=c3=81lvaro_Hern=c3=a1ndez_Tortosa?= , Vladimir Sitnikov Cc: List References: <74d59bcf-cc4f-3a61-cf0a-8ab3ed5ca9aa@matrix.gatewaynet.com> <09a677fd-144f-6b16-57a8-ed6a18f3ff08@matrix.gatewaynet.com> <0725142a-6924-56dc-5dd2-525e98669894@8kdata.com> From: Achilleas Mantzios Message-ID: Date: Tue, 31 Oct 2017 13:00:02 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <0725142a-6924-56dc-5dd2-525e98669894@8kdata.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 31/10/2017 12:56, Álvaro Hernández Tortosa wrote: > > > On 31/10/17 10:08, Achilleas Mantzios wrote: >> Hello Vladimir, thanx >> >> On 31/10/2017 10:30, Vladimir Sitnikov wrote: >>> Achilleas>So if say we need 5 connections max for the most complex app to work, and we have 200 users, then at peak time, the total number of connections would have to be raised to 1000. >>> >>> Pools can shrink, so you do not have to raise total number of connections to 1000 unless you truly expect 1000 concurrent connections. >> I know, but we still risk having our max_connections exceeded. And this is not scaleable. > >     That's true, but if you have a pgbouncer in front of PostgreSQL (you should) and the connections are used wisely (i.e. they are returned as soon as they finish the job, they don't sit idle) this > is no longer a problem. That would be a blessing if pgbouncer supported LDAP . > > >     Álvaro > -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc