From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Álvaro Hernández Tortosa <aht@8kdata.com>
Cc: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: Could pgsql jdbc support pool reauthentication?
Date: Thu, 16 Nov 2017 14:22:03 +0200
Message-ID: <9887a72e-6e17-2459-a693-33c99fca3e14@matrix.gatewaynet.com> (raw)
In-Reply-To: <CADK3HH+c=+6R7xyk7FJNRWwGQFdkxfs00DQApPvjctx_yzppTw@mail.gmail.com>
References: <74d59bcf-cc4f-3a61-cf0a-8ab3ed5ca9aa@matrix.gatewaynet.com>
<CAB=Je-Ge3LdLJMwsz0+GeT9T1KL0wXymUX206Y22K8+iYpsnWw@mail.gmail.com>
<09a677fd-144f-6b16-57a8-ed6a18f3ff08@matrix.gatewaynet.com>
<0725142a-6924-56dc-5dd2-525e98669894@8kdata.com>
<b8b5ae5f-44a8-6d75-83e9-eb4e36a7f966@matrix.gatewaynet.com>
<CADK3HHKvxnXKAFNGt3M7V_BzzY53b1jfsDuRdzBJ_dDb30oE8w@mail.gmail.com>
<34c91785-44d8-e202-ad6a-c22c3e69e986@matrix.gatewaynet.com>
<CADK3HHKBjNMP12LUSemEyLHQQW2wOP3LV-0G-Q4DCD3bxXsgnQ@mail.gmail.com>
<31650ea9-543b-e5e5-96e8-f169b594d715@matrix.gatewaynet.com>
<CADK3HH+c=+6R7xyk7FJNRWwGQFdkxfs00DQApPvjctx_yzppTw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
On 16/11/2017 12:15, Dave Cramer wrote:
> just provide a PR for pgbouncer here https://github.com/pgbouncer/pgbouncer
>
Had tried that as well. No reaction. IMHO for a project that is supposed to be so vital (like in "but if you have a pgbouncer in front of PostgreSQL (you should) and..." there should be more activity.
I mean, not having pgbouncer is supposed to be bad, but OTOH making pgbouncer work in a (semi-)enterprise environment (LDAP/search_path based multi-tenancy) looks like a journey in the mid ocean.
> Dave Cramer
>
> davec@postgresintl.com <mailto:davec@postgresintl.com>
> www.postgresintl.com <http://www.postgresintl.com;
>
> On 16 November 2017 at 03:30, Achilleas Mantzios <achill@matrix.gatewaynet.com <mailto:achill@matrix.gatewaynet.com>> wrote:
>
> Hello again,
>
> After looking at pgbouncer master branch, which supports PAM authentication and indirectly LDAP, I decided to give it a go. Also I had to do some minor patches to both the backend's GUC code,
> and pgbouncer in order to respect search_path and make it usable with transaction_mode (which IMHO is the main benefit of using pgbouncer vs the competition) - + it is the best bet closest to
> re-authentication, which postgresql does not support out of the box (and is fairly complicated to do so).
> After all those (not so trivial) changes I tested pgbouncer with my app, and I got sort of promising results, but also had a few unexpected failures as well.
> Sad thing is that neither pgbouncer's mailing list seems very active , despite having subscribed successfully it still fails to accept my emails, nor do I see the project at github very active,
> or any announcement for a new release soon .
>
> So I don't really know how to contact the pgbouncer community.
>
>
> On 01/11/2017 14:55, Dave Cramer wrote:
>> yes, and with a bit of work you should be able to port the changes over to the current pgbouncer
>>
>> Dave Cramer
>>
>> davec@postgresintl.com <mailto:davec@postgresintl.com>
>> www.postgresintl.com <http://www.postgresintl.com;
>>
>> On 31 October 2017 at 07:52, Achilleas Mantzios <achill@matrix.gatewaynet.com <mailto:achill@matrix.gatewaynet.com>> wrote:
>>
>> On 31/10/2017 13:08, Dave Cramer wrote:
>>> Pivotal has a branch of pgbouncer that supports LDAP.
>> Great news Dave, thanx, you mean this repo right ? : https://github.com/greenplum-db/pgbouncer <https://github.com/greenplum-db/pgbouncer;
>>
>>>
>>> Dave Cramer
>>>
>>> davec@postgresintl.com <mailto:davec@postgresintl.com>
>>> www.postgresintl.com <http://www.postgresintl.com;
>>>
>>> On 31 October 2017 at 07:00, Achilleas Mantzios <achill@matrix.gatewaynet.com <mailto:achill@matrix.gatewaynet.com>> wrote:
>>>
>>> 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 <mailto:pgsql-jdbc@postgresql.org>)
>>> To make changes to your subscription:
>>> http://www.postgresql.org/mailpref/pgsql-jdbc <http://www.postgresql.org/mailpref/pgsql-jdbc;
>>>
>>>
>>
>> --
>> Achilleas Mantzios
>> IT DEV Lead
>> IT DEPT
>> Dynacom Tankers Mgmt
>>
>>
>
> --
> Achilleas Mantzios
> IT DEV Lead
> IT DEPT
> Dynacom Tankers Mgmt
>
>
--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: achill@matrix.gatewaynet.com, pg@fastcrypt.com, aht@8kdata.com, sitnikov.vladimir@gmail.com
Subject: Re: Could pgsql jdbc support pool reauthentication?
In-Reply-To: <9887a72e-6e17-2459-a693-33c99fca3e14@matrix.gatewaynet.com>
References: <74d59bcf-cc4f-3a61-cf0a-8ab3ed5ca9aa@matrix.gatewaynet.com> <CAB=Je-Ge3LdLJMwsz0+GeT9T1KL0wXymUX206Y22K8+iYpsnWw@mail.gmail.com> <09a677fd-144f-6b16-57a8-ed6a18f3ff08@matrix.gatewaynet.com> <0725142a-6924-56dc-5dd2-525e98669894@8kdata.com> <b8b5ae5f-44a8-6d75-83e9-eb4e36a7f966@matrix.gatewaynet.com> <CADK3HHKvxnXKAFNGt3M7V_BzzY53b1jfsDuRdzBJ_dDb30oE8w@mail.gmail.com> <34c91785-44d8-e202-ad6a-c22c3e69e986@matrix.gatewaynet.com> <CADK3HHKBjNMP12LUSemEyLHQQW2wOP3LV-0G-Q4DCD3bxXsgnQ@mail.gmail.com> <31650ea9-543b-e5e5-96e8-f169b594d715@matrix.gatewaynet.com> <CADK3HH+c=+6R7xyk7FJNRWwGQFdkxfs00DQApPvjctx_yzppTw@mail.gmail.com> <9887a72e-6e17-2459-a693-33c99fca3e14@matrix.gatewaynet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox