From: | Simon Riggs <simon(dot)riggs(at)2ndquadrant(dot)com> |
---|---|
To: | Craig Ringer <craig(at)2ndquadrant(dot)com> |
Cc: | Thom Brown <thom(at)linux(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Logical decoding on standby |
Date: | 2017-03-20 06:57:51 |
Message-ID: | CANP8+j+jK_Xwpz02RFhFa1tAKArccLFijaob_OhOxW6+0dvh_w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 19 March 2017 at 21:12, Craig Ringer <craig(at)2ndquadrant(dot)com> wrote:
> Rebased attached.
Patch1 looks good to go. I'll correct a spelling mistake in the tap
test when I commit that later today.
Patch2 has a couple of points
2.1 Why does call to ReplicationSlotAcquire() move earlier in
pg_logical_slot_get_changes_guts()?
2.2 sendTimeLineIsHistoric looks incorrect, and at least isn't really
documented well.
The setting
sendTimeLineIsHistoric = state->currTLI == ThisTimeLineID;
should be
sendTimeLineIsHistoric = (state->currTLI != ThisTimeLineID);
but that doesn't cause failure because in read_local_xlog_page() we
say that we are reading from history when
state->currTLI != ThisTimeLineID explicitly rather than use
sendTimeLineIsHistoric
So it looks like we could do with a few extra comments
If you correct these I'll commit it tomorrow.
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Mithun Cy | 2017-03-20 07:01:22 | Re: [PATCH] Incremental sort (was: PoC: Partial sort) |
Previous Message | Heikki Linnakangas | 2017-03-20 06:30:48 | Re: [COMMITTERS] pgsql: Add TAP tests for password-based authentication methods. |