Re: libpq connectoin redirect - Mailing list pgsql-hackers

From James William Pye
Subject Re: libpq connectoin redirect
Date
Msg-id E1274ECA-F991-4BE1-B68E-233209997F75@jwp.name
Whole thread Raw
In response to libpq connectoin redirect  (feng tian <ft_uw@hotmail.com>)
Responses Re: libpq connectoin redirect  (feng tian <ft_uw@hotmail.com>)
Re: libpq connectoin redirect  (feng tian <ft_uw@hotmail.com>)
List pgsql-hackers
On Apr 20, 2010, at 10:03 PM, feng tian wrote:
> Another way to do this, is to send the client an "redirect" message.  When client connect to 127.0.0.10, instead of
acceptingthe connection, it can reply to client telling it to reconnect to one of the server on 127.0.0.11-14.   

ISTM that this would be better handled at a higher-level. That is, given a server (127.0.0.10) that holds
127.0.0.11-14.Connect to that server and query for the correct target host. 

pgsql-hackers by date:

Previous
From: John R Pierce
Date:
Subject: Re: libpq connectoin redirect
Next
From: Robert Haas
Date:
Subject: don't allow walsender to consume superuser_reserved_connection slots, or during shutdown