Re: Logical replication and multimaster - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Logical replication and multimaster
Date
Msg-id CA+TgmobiQUpXpiJ0z+=PMjL4at5TteZ27A8JPMY+QQb_9NeyJA@mail.gmail.com
Whole thread Raw
In response to Re: Logical replication and multimaster  (Andres Freund <andres@anarazel.de>)
Responses Re: Logical replication and multimaster  (Petr Jelinek <petr@2ndquadrant.com>)
Re: Logical replication and multimaster  (Craig Ringer <craig@2ndquadrant.com>)
List pgsql-hackers
On Fri, Dec 11, 2015 at 5:16 AM, Andres Freund <andres@anarazel.de> wrote:
> On 2015-12-11 18:12:55 +0800, Craig Ringer wrote:
>> On 10 December 2015 at 03:19, Robert Haas <robertmhaas@gmail.com> wrote:
>> > On Sun, Dec 6, 2015 at 10:24 PM, Craig Ringer <craig@2ndquadrant.com>
>> > wrote:
>> > > * A way to securely make a libpq connection from a bgworker without
>> > messing
>> > > with passwords etc. Generate one-time cookies, sometihng like that.
>> >
>> > Why would you have the bgworker connect to the database via TCP
>> > instead of just doing whatever it wants to do directly?
>
>> pg_dump and pg_restore, mainly, for copying the initial database state.
>
> Well, you don't want to necessarily directly connect from the bgworker,
> but from processes started from a bgworker. I guess that's where a good
> bit of the Robert's confusion originated.

That's part of it, yeah.  I'm a little scared of this design.  I mean,
I understand now why Craig wants to do this (thanks for explaining,
Craig!), but it seems like it's going to have a lot of the same
reliability problems that pg_upgrade does.  I'm not saying there's a
better way to get the functionality, but it's pretty obvious that
depending on tools other than the server itself, and in particular
pg_dump, vastly increases the failure surface area.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Marco Nenciarini
Date:
Subject: Re: Uninterruptible slow geo_ops.c
Next
From: Caleb Welton
Date:
Subject: Re: Bootstrap DATA is a pita