[PATCH] TAP test showing that pg_replication_slot_advance() works on standby - Mailing list pgsql-hackers

From Craig Ringer
Subject [PATCH] TAP test showing that pg_replication_slot_advance() works on standby
Date
Msg-id CAGRY4nxSZFQpybu5+fgPDDhkiupUpwgvPuaW3o=bOHr08TxCPg@mail.gmail.com
Whole thread Raw
Responses Re: [PATCH] TAP test showing that pg_replication_slot_advance() works on standby  (Masahiko Sawada <sawada.mshk@gmail.com>)
List pgsql-hackers
Hi all

The attached patch adds a test to the TAP logical decoding suite to show that pg_replication_slot_advance() works on a server in standby mode.

I didn't add a full demonstration of how to do failover with logical slots because we're still missing a way to "sync" a logical slot from a primary to a standby, or a way to directly create such a slot safely on a standby in a way that enforces a safe catalog_xmin etc.

You can't replay from the slot unless the server is promoted, so I don't test that.

I'm not sure if anyone's going to find it worth committing, but it's here so searchers can find it at least.
Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUG]: segfault during update
Next
From: Thomas Munro
Date:
Subject: Re: [Patch] Optimize dropping of relation buffers using dlist