From: | Craig Ringer <craig(dot)ringer(at)enterprisedb(dot)com> |
---|---|
To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | [PATCH] TAP test showing that pg_replication_slot_advance() works on standby |
Date: | 2020-11-10 05:32:24 |
Message-ID: | CAGRY4nxSZFQpybu5+fgPDDhkiupUpwgvPuaW3o=bOHr08TxCPg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 | Content-Type | Size |
---|---|---|
0001-Extend-TAP-test-for-pg_replication_slot_advance-to-c_patch.txt | text/plain | 2.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2020-11-10 05:33:51 | Re: [Patch] Optimize dropping of relation buffers using dlist |
Previous Message | Tom Lane | 2020-11-10 05:24:21 | Re: [BUG]: segfault during update |