Re: Built-in connection pooling - Mailing list pgsql-hackers

From Konstantin Knizhnik
Subject Re: Built-in connection pooling
Date
Msg-id 6a404877-7dec-841b-b8a8-77679d8995af@postgrespro.ru
Whole thread Raw
In response to Re: Built-in connection pooling  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Responses Re: Built-in connection pooling
List pgsql-hackers

On 20.04.2018 01:58, Tatsuo Ishii wrote:
>> I think there's plenty things that don't really make sense solving
>> outside of postgres:
>> - additional added hop / context switches due to external pooler
> This is only applied to external process type pooler (like Pgpool-II).
>
>> - temporary tables
>> - prepared statements
>> - GUCs and other session state
> These are only applied to "non session based" pooler; sharing a
> database connection with multiple client connections. "Session based"
> connection pooler like Pgpool-II does not have the shortcomings.
But them are not solving the main problem: restricting number of 
launched backends.
Pgbouncer  also can be used in session pooling mode. But  it makes sense 
only if there is limited number of clients which permanently 
connect/disconnect to the database.
But I do not think that it is so popular use case. Usually there is very 
large number of connected clients which rarely drop connection but only 
few of them are active at each moment of time.

-- 
Konstantin Knizhnik
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company



pgsql-hackers by date:

Previous
From: Konstantin Knizhnik
Date:
Subject: Re: Built-in connection pooling
Next
From: Konstantin Knizhnik
Date:
Subject: Re: Built-in connection pooling