Re: [HACKERS] Separation walsender & normal backends - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: [HACKERS] Separation walsender & normal backends
Date
Msg-id CAMsr+YGsNG3FgzH5=bz=i4jgBDx0N2E1tfpG4PviTJ+Ft+EB7g@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Separation walsender & normal backends  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On 26 April 2017 at 02:36, Andres Freund <andres@anarazel.de> wrote:

> For
> logical rep we'd alternatively add more complexity because we'd need
> both replication and non-replication connections (to stream changes, to
> copy tables, to query config), which'd also complicate administration
> because users & hba config have to be setup so the same user can connect
> over both.

We have experience of this from BDR and pglogical, of course, and it's
definitely a pain and source of user misconfiguration.

I'm not sure how practical it is to merge walsenders and regular
backends at this stage of pg10 development, but it seems like a
worthwhile goal down the track. I'd very much like to reduce the
amount of magic global juggling done by the walsender, unify the
XLogRead paths, unify the timeline following logic for physical
walsenders, logical walsenders and logical decoding on normal
backends, allow normal backends to be signaled when there's new WAL,
etc. I think there's a fair bit to do in order to do this well though.

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: [HACKERS] [PostgreSQL 10] default of hot_standby should be "on"?
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] scram and \password