Re: [HACKERS] Replication status in logical replication
Tels <nospam-pg-abuse@bloodgate.com>
From: "Tels" <nospam-pg-abuse@bloodgate.com>
To: "Masahiko Sawada" <sawada.mshk@gmail.com>
Cc: "Petr Jelinek" <petr.jelinek@2ndquadrant.com>,
"Thomas Munro" <thomas.munro@enterprisedb.com>,
"Vaishnavi Prabakaran" <vaishnaviprabakaran@gmail.com>,
"Daniel Gustafsson" <daniel@yesql.se>,
"Peter Eisentraut" <peter.eisentraut@2ndquadrant.com>,
"Simon Riggs" <simon@2ndquadrant.com>,
"Noah Misch" <noah@leadboat.com>,
"PostgreSQL-development" <pgsql-hackers@postgresql.org>
Date: 2017-12-26T11:18:47Z
Lists: pgsql-hackers
Moin, On Tue, December 26, 2017 5:26 am, Masahiko Sawada wrote: > On Tue, Dec 26, 2017 at 6:19 PM, Tels <nospam-pg-abuse@bloodgate.com> > wrote: >> Moin, >> >> On Mon, December 25, 2017 7:26 pm, Masahiko Sawada wrote: >>> On Tue, Dec 26, 2017 at 1:10 AM, Petr Jelinek >>> <petr.jelinek@2ndquadrant.com> wrote: >>>> On 21/11/17 22:06, Masahiko Sawada wrote: >>>>> >>>>> After investigation, I found out that my previous patch was wrong >>>>> direction. I should have changed XLogSendLogical() so that we can >>>>> check the read LSN and set WalSndCaughtUp = true even after read a >>>>> record without wait. Attached updated patch passed 'make >>>>> check-world'. >>>>> Please review it. >>>>> >>>> >>>> Hi, >>>> >>>> This version looks good to me and seems to be in line with what we do >>>> in >>>> physical replication. >>>> >>>> Marking as ready for committer. >> >> (Sorry Masahiko, you'll get this twice, as fumbled the reply button.) >> >> I have not verifed that comment and/or code are correct, just a grammar >> fix: >> >> + /* >> + * If we've sent a record is at or beyond the flushed >> point, then >> + * we're caught up. >> >> That should read more like this: >> >> "If we've sent a record that is at or beyond the flushed point, we have >> caught up." >> > > Thank you for reviewing the patch! > Actually, that comment is inspired by the comment just below comment. > ISTM it's better to fix both if grammar of them is not appropriate. Oh yes. Your attached version reads fine to me. All the best, Tels
Commits
-
Make logical WAL sender report streaming state appropriately
- 98e2c298c2f5 9.4.19 landed
- 19648375cc30 9.5.14 landed
- d5eb1fe0dc71 9.6.10 landed
- 11abea37d5d1 10.5 landed
- 0414ac6a1eb2 11.0 landed
- 9a7b7adc130a 12.0 landed