Re: WIP: Failover Slots - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: WIP: Failover Slots
Date
Msg-id CAMsr+YF+wm=5X3miDEGFmwxH1a8KcLyRq-F8oGDV2A-GhmfTPQ@mail.gmail.com
Whole thread Raw
In response to Re: WIP: Failover Slots  (Craig Ringer <craig@2ndquadrant.com>)
Responses Re: WIP: Failover Slots
List pgsql-hackers
Hi all

Here's v2 of the failover slots patch. It replicates a logical slot to a physical streaming replica downstream, keeping the slots in sync. After the downstream is promoted a client can replay from the logical slot.

UI to allow creation of non-failover slots is pending.

There's more testing to do to cover all the corners: drop slots, drop and re-create, name conflicts between downstream !failover slots and upstream failover slots, etc.

There's also a known bug where WAL isn't correctly retained for a slot where that slot was created before a basebackup which I'll fix in a revision shortly.

I'm interested in ideas on how to better test this.

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


Attachment

pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: pg_lsn cast to/from int8
Next
From: Alvaro Herrera
Date:
Subject: Re: pgbench stats per script & other stuff