Re: [HACKERS] Client Connection redirection support for PostgreSQL - Mailing list pgsql-hackers

From Satyanarayana Narlapuram
Subject Re: [HACKERS] Client Connection redirection support for PostgreSQL
Date
Msg-id CY1PR21MB0024E95AD80EF5562D7D22E5915D0@CY1PR21MB0024.namprd21.prod.outlook.com
Whole thread Raw
In response to Re: [HACKERS] Client Connection redirection support for PostgreSQL  (Craig Ringer <craig@2ndquadrant.com>)
List pgsql-hackers
> pg_hba.conf is "host based access [control]" . I'm not sure it's really the right place.
I am open to have another configuration file, say routing_list.conf to define the routing rules, but felt it is easy to
extendthe hba conf file.
 

> But we now have a session-intent stuff though. So we could possibly do it at session level.
Session intent can be used as an obvious hint for the routing to kick in. This can be a rule in the routing list to
routethe read intent sessions round robin across multiple secondary replicas.
 

> Backends used just for a redirect would be pretty expensive though.
It is somewhat expensive as the new process fork has to happen for each new connection. The advantage is that it makes
proxiesoptional (if the middle tier can do connection management), and all the routing configurations can be within the
server.
This also benefits latency sensitive applications not going through proxy.


--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: Satyanarayana Narlapuram
Date:
Subject: Re: [HACKERS] Client Connection redirection support for PostgreSQL
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] How to implement a SP-GiST index as a extension module?