Re: Streaming replication and non-blocking I/O
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2009-12-17T12:02:29Z
Lists: pgsql-hackers
Fujii Masao wrote: > On Wed, Dec 16, 2009 at 6:53 PM, Heikki Linnakangas > <heikki.linnakangas@enterprisedb.com> wrote: >> 0. Begin by connecting to the master just like a normal backend does. We >> don't necessarily need the new ProtocolVersion code either, though it's >> probably still a good idea to reject connections to older server versions. > > And, I think that such backend should switch to walsender mode when the startup > packet arrives. Otherwise, we would have to authenticate such backend twice > on different context, i.e., a normal backend and walsender. So the settings for > each context would be required in pg_hba.conf. This is odd, I think. Thought? True. >> This is identical to what happens when a query is executed against a >> normal backend using the simple query protocol, so walsender can use >> PQexec() for this. > > s/walsender/walreceiver ? Right. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com