Re: [PoC] pg_upgrade: allow to upgrade publisher node

2023-09-21 Thread Bharath Rupireddy
On Thu, Sep 21, 2023 at 5:45 PM Amit Kapila wrote: > > > Thanks for the patch. I have some comments on v42: > > Probably trying to keep it similar with > binary_upgrade_create_empty_extension(). I think it depends what > behaviour we expect for NULL input. confirmed_flush_lsn for a logical slot

Re: Bug fix in vacuumdb --buffer-usage-limit xxx -Z

2023-09-21 Thread Michael Paquier
On Thu, Sep 21, 2023 at 06:56:29PM +1200, David Rowley wrote: > I deem it pretty unlikely that someone will accidentally remove the > code that I just committed and a test to test that vacuumdb -Z > --buffer-usage-limit ... passes the BUFFER_USAGE_LIMIT option would > likely just forever mark that

Re: Row pattern recognition

2023-09-21 Thread Tatsuo Ishii
> Attached is the fix against v6 patch. I will include this in upcoming v7 > patch. Attached is the v7 patch. It includes the fix mentioned above. Also this time the pattern matching engine is enhanced: previously it recursed to row direction, which means if the number of rows in a frame is

Doesn't pgstat_report_wal() handle the argument "force" incorrectly

2023-09-21 Thread Ryoga Yoshida
Hi, pgstat_report_wal() calls pgstat_flush_wal() and pgstat_flush_io(). When calling them, pgstat_report_wal() specifies its argument "force" as the argument of them, as follows. But according to the code of pgstat_flush_wal() and pgstat_flush_io(), their argument is "nowait" and its meaning

Doesn't pgstat_report_wal() handle the argument "force" incorrectly

2023-09-21 Thread Ryoga Yoshida
Hi, pgstat_report_wal() calls pgstat_flush_wal() and pgstat_flush_io(). When calling them, pgstat_report_wal() specifies its argument "force" as the argument of them, as follows. But according to the code of pgstat_flush_wal() and pgstat_flush_io(), their argument is "nowait" and its meaning

Re: [HACKERS] Should logtape.c blocks be of type long?

2023-09-21 Thread Peter Geoghegan
On Thu, Sep 21, 2023 at 9:46 PM Michael Paquier wrote: > So, attached is a patch to change these longs to int64. Any thoughts? No new thoughts. I'm still all in favor of this. Thanks for picking it up. At some point we should completely ban the use of "long". -- Peter Geoghegan

Try adding type cast with tablespace

2023-09-21 Thread 程ゆき
Hi all, Good day! I am a newbee to PostgreSQL and recently came across an idea about type-casting tablespace OID. The motibation is that when I have to upgrade a PostgreSQL database, we need to join other tables to track tablespace name. I have just created a simple patch to resolve this.

Re: [HACKERS] Should logtape.c blocks be of type long?

2023-09-21 Thread Michael Paquier
On Sun, Feb 26, 2017 at 10:04:20AM -0800, Peter Geoghegan wrote: > I think it's worth being consistent about a restriction like this, as > Robert said. Given that fixing this issue will not affect the machine > code generated by compilers for the majority of platforms we support, > doing so seems

Re: New WAL record to detect the checkpoint redo location

2023-09-21 Thread Dilip Kumar
On Thu, Sep 21, 2023 at 1:50 AM Robert Haas wrote: > > On Mon, Sep 18, 2023 at 2:57 PM Robert Haas wrote: > > I've been brainstorming about this today, trying to figure out some > > ideas to make it work. > > Here are some patches. > > 0001 refactors XLogInsertRecord to unify a couple of

Re: [PoC] Reducing planning time when tables have many partitions

2023-09-21 Thread Lepikhov Andrei
On Wed, Sep 20, 2023, at 5:04 PM, Yuya Watari wrote: > On Tue, Sep 19, 2023 at 5:21 PM Andrey Lepikhov > wrote: >> Working on self-join removal in the thread [1] nearby, I stuck into the >> problem, which made an additional argument to work in this new direction >> than a couple of previous ones.

Re: pg_upgrade --check fails to warn about abstime

2023-09-21 Thread Tom Lane
Bruce Momjian writes: > On Wed, Sep 20, 2023 at 06:54:24PM +0200, Álvaro Herrera wrote: >> I got a complaint that pg_upgrade --check fails to raise red flags when >> the source database contains type abstime when upgrading from pg11. The >> type (along with reltime and tinterval) was removed by

Re: Questioning an errcode and message in jsonb.c

2023-09-21 Thread Andy Fan
Hi Chap, > As to how to redesign the error message is a bit confusing to > me, it would be good to see the proposal code as well. > > The only concern from me is that the new error from newer > version is not compatible with the older versions, which may matters > matters or doesn't match, I

Re: Report planning memory in EXPLAIN ANALYZE

2023-09-21 Thread Andy Fan
Hi Ashutosh, Thanks for the patch! I think the reason why others are not excited about this is because the benefit is not clear enough to them after the first glance and plus the chosen wolds "Planning Memory: used " is still confusing for different people. I admit it is clear to you absolutely,

RE: CI: Unfamiliar error while testing macOS

2023-09-21 Thread Hayato Kuroda (Fujitsu)
Dear Daniel, Thank you for confirmation! > > That looks like a transient infrastructure error and not something related to > your patch, it will most likely go away for the next run. > I checked next run and found that tests were passed on all platforms. I'm still not sure the root cause, but

Re: pg_upgrade --check fails to warn about abstime

2023-09-21 Thread Bruce Momjian
On Wed, Sep 20, 2023 at 06:54:24PM +0200, Álvaro Herrera wrote: > I got a complaint that pg_upgrade --check fails to raise red flags when > the source database contains type abstime when upgrading from pg11. The > type (along with reltime and tinterval) was removed by pg12. Wow, I never added

Re: Questioning an errcode and message in jsonb.c

2023-09-21 Thread Chapman Flack
On 2023-09-21 20:38, Andy Fan wrote: insert into tb select '{"a": "foo", "b": 1}'; ... select cast(a->'a' as numeric) from tb; ERRCODE_INVALID_PARAMETER_VALUE cannot cast jsonb string to type numeric ... select cast(a->'b' as int2) from tb; NUMERIC_VALUE_OUT_OF_RANGE smallint out of

Re: Questioning an errcode and message in jsonb.c

2023-09-21 Thread Andy Fan
Hi Peter, On Wed, Sep 20, 2023 at 4:51 PM Peter Eisentraut wrote: > On 18.09.23 18:55, Chapman Flack wrote: > > It would make me happy if the message could be changed, and maybe > > ERRCODE_INVALID_PARAMETER_VALUE also changed, perhaps to one of > > the JSON-specific ones in the 2203x range. >

Re: [PoC] pg_upgrade: allow to upgrade publisher node

2023-09-21 Thread Michael Paquier
On Thu, Sep 21, 2023 at 01:50:28PM +0530, Amit Kapila wrote: > We have discussed this point. Normally, we don't have such options in > upgrade, so we were hesitent to add a new one for this but there is a > discussion to add an --exclude-logical-slots option. We are planning > to add that as a

Re: Disabling Heap-Only Tuples

2023-09-21 Thread Andres Freund
Hi, On 2023-09-19 20:20:06 +0200, Matthias van de Meent wrote: > Mostly agreed, but I think there's a pitfall here. You seem to assume > we have a perfect oracle that knows the optimal data size, but we > already know that our estimates can be significantly off. I don't > quite trust the

Re: pg_upgrade and logical replication

2023-09-21 Thread Michael Paquier
On Thu, Sep 21, 2023 at 02:35:55PM +0530, Amit Kapila wrote: > It is because after upgrade of both publisher and subscriber, the > subscriptions won't work. Both publisher and subscriber should work, > otherwise, the logical replication set up won't work. I think we can > probably do this, if we

Re: Disabling Heap-Only Tuples

2023-09-21 Thread Andres Freund
Hi, On 2023-09-19 14:50:13 -0400, Robert Haas wrote: > On Tue, Sep 19, 2023 at 12:56 PM Andres Freund wrote: > > Yea, a setting like what's discussed here seems, uh, not particularly useful > > for achieving the goal of compacting tables. I don't think guiding this > > through SQL makes a lot

Re: GenBKI emits useless open;close for catalogs without rows

2023-09-21 Thread Andres Freund
Hi, On 2023-09-19 21:05:41 +0300, Heikki Linnakangas wrote: > On 18/09/2023 17:50, Matthias van de Meent wrote: > > (initdb takes about 73ms locally with syncing disabled) > > That's impressive. It takes about 600 ms on my laptop. Of which about 140 ms > goes into processing the BKI file. And

Re: CREATE FUNCTION ... SEARCH { DEFAULT | SYSTEM | SESSION }

2023-09-21 Thread Jeff Davis
On Tue, 2023-09-19 at 20:23 -0700, Maciek Sakrejda wrote: > On Tue, Sep 19, 2023 at 5:56 PM Jeff Davis wrote: > > ... > > On Tue, 2023-09-19 at 11:41 -0400, Robert Haas wrote: > > > That leads to a second idea, which is having it continue > > > to be a GUC but only affect directly-entered SQL,

Re: Index range search optimization

2023-09-21 Thread Peter Geoghegan
On Thu, Sep 21, 2023 at 5:11 AM Pavel Borisov wrote: > I looked at the patch code and I agree with this optimization. > Implementation also looks good to me except change : > + if (key->sk_flags & (SK_BT_REQFWD | SK_BT_REQBKWD) && > + !(key->sk_flags & SK_ROW_HEADER)) > + requiredDir = true; >

Re: Eliminate redundant tuple visibility check in vacuum

2023-09-21 Thread Robert Haas
On Thu, Sep 21, 2023 at 3:53 PM Robert Haas wrote: > > > static int heap_prune_chain(Buffer buffer, > > >OffsetNumber > > > rootoffnum, > > > + int8 *htsv, > > >

Re: Eliminate redundant tuple visibility check in vacuum

2023-09-21 Thread Robert Haas
[ sorry for the delay getting back to this ] On Wed, Sep 13, 2023 at 1:29 PM Andres Freund wrote: > I think it might be worth making the names a bit less ambiguous than they > were. It's a bit odd that one has "new" in the name, the other doesn't, > despite both being about newly marked things.

Re: how to do profile for pg?

2023-09-21 Thread David Geier
Hi, This talk from Andres seems to have some relevant information for you: https://www.youtube.com/watch?v=HghP4D72Noc -- David Geier (ServiceNow)

Re: Questions about the new subscription parameter: password_required

2023-09-21 Thread Robert Haas
On Thu, Sep 21, 2023 at 8:03 AM Benoit Lobréau wrote: > I am confused about the new subscription parameter: password_required. > > I have two instances. The publisher's pg_hba is configured too allow > connections without authentication. On the subscriber, I have an > unprivileged user with

Re: CREATE FUNCTION ... SEARCH { DEFAULT | SYSTEM | SESSION }

2023-09-21 Thread Robert Haas
On Tue, Sep 19, 2023 at 7:56 PM Jeff Davis wrote: > Good documentation includes some guidance. Sure, it should describe the > system behavior, but without anchoring it to some kind of expected use > case, it can be equally frustrating. Fair. > I don't mean to set some major new standard in the

Re: how to do profile for pg?

2023-09-21 Thread Alvaro Herrera
This talk by D. Dolgov https://www.postgresql.eu/events/pgconfeu2022/sessions/session/3861/slides/325/Dmitrii_Dolgov_PGConf_EU_2022.pdf might be insightful. Or not, because you need to fill in a lot of blanks. Maybe you can find a recording of that talk somewhere, if you're lucky. -- Álvaro

Re: how to do profile for pg?

2023-09-21 Thread Aleksander Alekseev
Hi, > but I need a quick demo to see the memory profiling or CPU profiling. I hope > a blog or a video which is better for me. Thanks Well, then I guess you better hurry with reading these books :) There is no shortcut I'm afraid. One of the first things that Brendan explains is how to do

Re: New WAL record to detect the checkpoint redo location

2023-09-21 Thread Robert Haas
On Thu, Sep 21, 2023 at 4:22 AM Amit Kapila wrote: > After the 0003 patch, do we need acquire exclusive lock via > WALInsertLockAcquireExclusive() for non-shutdown checkpoints. Even the > comment "We must block concurrent insertions while examining insert > state to determine the checkpoint REDO

Re: how to do profile for pg?

2023-09-21 Thread jack...@gmail.com
but I need a quick demo to see the memory profiling or CPU profiling. I hope a blog or a video which is better for me. Thanks. Replied Message From mailto:aleksan...@timescale.com; >Aleksander

Re: how to do profile for pg?

2023-09-21 Thread Aleksander Alekseev
Hi jacktby, PostgreSQL is literally a large and complicated program in C. Thus it can be profiled as such. E.g. you can use `perf` and build flamegraphs using `perf record`. Often pgbench is an adequate tool to compare before and after results.There are many other tools available depending on

Re: Infinite Interval

2023-09-21 Thread Ashutosh Bapat
On Wed, Sep 20, 2023 at 8:23 PM Dean Rasheed wrote: > > On Wed, 20 Sept 2023 at 15:00, Ashutosh Bapat > wrote: > > > > 0005 - Refactored Jian's code fixing window functions. Does not > > contain the changes for serialization and deserialization. Jian, > > please let me know if I have missed

RE: [PoC] pg_upgrade: allow to upgrade publisher node

2023-09-21 Thread Hayato Kuroda (Fujitsu)
Dear Bharath, Thank you for reviewing! Before addressing them, I would like to reply some comments. > 6. > +if (PQntuples(res) != 1) > +pg_fatal("could not count the number of logical replication slots"); > + > > Not existing a single logical replication slot an error? I think it >

how to do profile for pg?

2023-09-21 Thread jack...@gmail.com

Re: Allow specifying a dbname in pg_basebackup connection string

2023-09-21 Thread Daniel Gustafsson
> On 18 Sep 2023, at 14:11, Daniel Gustafsson wrote: > Unless something sticks out in a second pass over it I will go ahead and apply > it. And applied, closing the CF entry. -- Daniel Gustafsson

Re: Add 'worker_type' to pg_stat_subscription

2023-09-21 Thread Amit Kapila
On Thu, Sep 21, 2023 at 5:36 AM Peter Smith wrote: > > On Thu, Sep 21, 2023 at 9:34 AM Nathan Bossart > wrote: > > > > On Thu, Sep 21, 2023 at 08:14:23AM +0900, Michael Paquier wrote: > > > On Thu, Sep 21, 2023 at 09:01:01AM +1000, Peter Smith wrote: > > >> One question -- the patch comment

Re: [PoC] pg_upgrade: allow to upgrade publisher node

2023-09-21 Thread Amit Kapila
On Thu, Sep 21, 2023 at 4:57 PM Bharath Rupireddy wrote: > > On Wed, Sep 20, 2023 at 7:20 PM Hayato Kuroda (Fujitsu) > wrote: > > > > Good catch, I could not notice because it worked well in my RHEL. Here is > > the > > updated version. > > Thanks for the patch. I have some comments on v42: > >

Re: Index range search optimization

2023-09-21 Thread Pavel Borisov
On Thu, 21 Sept 2023 at 15:17, Alexander Korotkov wrote: > > On Wed, Sep 20, 2023 at 5:07 PM Alexander Korotkov > wrote: > > On Tue, Sep 19, 2023 at 1:48 AM Peter Geoghegan wrote: > > This also makes sense. I've rephrased the comment. > > The revised patch is attached. It contains better

Re: pg_stat_statements and "IN" conditions

2023-09-21 Thread Jakub Wartak
The following review has been posted through the commitfest application: make installcheck-world: tested, passed Implements feature: tested, passed Spec compliant: not tested Documentation:tested, passed I've tested the patched on 17devel/master and it is my feeling -

Re: [PoC] pg_upgrade: allow to upgrade publisher node

2023-09-21 Thread Bharath Rupireddy
On Wed, Sep 20, 2023 at 7:20 PM Hayato Kuroda (Fujitsu) wrote: > > Good catch, I could not notice because it worked well in my RHEL. Here is the > updated version. Thanks for the patch. I have some comments on v42: 1. +{ oid => '8046', descr => 'for use by pg_upgrade', + proname =>

Re: Comment about set_join_pathlist_hook()

2023-09-21 Thread Etsuro Fujita
Hi, On Wed, Sep 20, 2023 at 7:49 PM David Rowley wrote: > On Wed, 20 Sept 2023 at 22:06, Etsuro Fujita wrote: > > So I would like to propose to extend the comment to explain what they > > can do, as in the comment about set_rel_pathlist_hook() in allpaths.c. > > Attached is a patch for that. >

RE: [PoC] pg_upgrade: allow to upgrade publisher node

2023-09-21 Thread Hayato Kuroda (Fujitsu)
Dear Hackers, > Good catch, I could not notice because it worked well in my RHEL. Here is the > updated version. I did some cosmetic changes for the patch, the functionality was not changed. E.g., a macro function was replaced to an inline. Note that cfbot got angry to old patch, but it seemed

Re: Add 'worker_type' to pg_stat_subscription

2023-09-21 Thread Amit Kapila
On Thu, Sep 21, 2023 at 1:00 AM Nathan Bossart wrote: > > On Tue, Sep 19, 2023 at 08:36:35AM +0530, Amit Kapila wrote: > > I am of the opinion that worker_type should be 'apply' instead of > > 'leader apply' because even when it is a leader for parallel apply > > worker, it could perform

Questions about the new subscription parameter: password_required

2023-09-21 Thread Benoit Lobréau
Hi, I am confused about the new subscription parameter: password_required. I have two instances. The publisher's pg_hba is configured too allow connections without authentication. On the subscriber, I have an unprivileged user with pg_create_subscription and CREATE on the database. I tried

Re: Guiding principle for dropping LLVM versions?

2023-09-21 Thread Daniel Gustafsson
> On 21 Sep 2023, at 07:28, Tom Lane wrote: > > Thomas Munro writes: >> I wonder if there is a good way to make this sort of thing more >> systematic. If we could agree on a guiding principle vaguely like the >> above, then perhaps we just need a wiki page that lists relevant >> distributions,

Re: Index range search optimization

2023-09-21 Thread Alexander Korotkov
On Wed, Sep 20, 2023 at 5:07 PM Alexander Korotkov wrote: > On Tue, Sep 19, 2023 at 1:48 AM Peter Geoghegan wrote: > This also makes sense. I've rephrased the comment. The revised patch is attached. It contains better comments and the commit message. Peter, could you please check if you're

Re: pg_upgrade and logical replication

2023-09-21 Thread Amit Kapila
On Thu, Sep 21, 2023 at 4:39 AM Michael Paquier wrote: > > On Wed, Sep 20, 2023 at 04:54:36PM +0530, Amit Kapila wrote: > > Also, the patch seems to be allowing subscription relations from PG > > >=10 to be migrated but how will that work if the corresponding > > publisher is also upgraded

Re: pg_upgrade and logical replication

2023-09-21 Thread Amit Kapila
On Thu, Sep 21, 2023 at 11:37 AM Michael Paquier wrote: > > On Wed, Sep 20, 2023 at 04:54:36PM +0530, Amit Kapila wrote: > > Is the check to ensure remote_lsn is valid correct in function > > check_for_subscription_state()? How about the case where the apply > > worker didn't receive any change

Re: New WAL record to detect the checkpoint redo location

2023-09-21 Thread Amit Kapila
On Thu, Sep 21, 2023 at 7:05 AM Robert Haas wrote: > > On Mon, Sep 18, 2023 at 2:57 PM Robert Haas wrote: > > I've been brainstorming about this today, trying to figure out some > > ideas to make it work. > > Here are some patches. > > 0001 refactors XLogInsertRecord to unify a couple of

Re: remaining sql/json patches

2023-09-21 Thread Alvaro Herrera
I keep looking at 0001, and in the struct definition I think putting the escontext at the bottom is not great, because there's a comment a few lines above that says "XXX: following fields only needed during "compilation"), could be thrown away afterwards". This comment is not strictly true,

Re: should frontend tools use syncfs() ?

2023-09-21 Thread Maxim Orlov
On Wed, 20 Sept 2023 at 22:08, Nathan Bossart wrote: > I think we should also consider renaming things like SYNC_METHOD_FSYNC to > WAL_SYNC_METHOD_FSYNC, and sync_method_options to wal_sync_method_options. > I've already rename sync_method_options in previous patch. 34 @@ -171,7 +171,7 @@

Re: [PoC] pg_upgrade: allow to upgrade publisher node

2023-09-21 Thread Amit Kapila
On Thu, Sep 21, 2023 at 1:10 PM Michael Paquier wrote: > > On Wed, Sep 20, 2023 at 11:28:33AM +, Hayato Kuroda (Fujitsu) wrote: > > Good catch, I could not notice because it worked well in my RHEL. Here is > > the > > updated version. > > I am getting slowly up to date with this patch.. But

Re: Array initialisation notation in syscache.c

2023-09-21 Thread Peter Eisentraut
On 31.03.23 04:16, Thomas Munro wrote: From the light relief department, here is some more variadic macrology: - tp = SearchSysCache1(TSPARSEROID, ObjectIdGetDatum(prsId)); + tp = SearchSysCache(TSPARSEROID, ObjectIdGetDatum(prsId)); I'm worried that if we are removing the

Re: Bug fix in vacuumdb --buffer-usage-limit xxx -Z

2023-09-21 Thread Ryoga Yoshida
On 2023-09-21 14:50, David Rowley wrote: I've pushed your patch plus some additional code to escape the text specified in --buffer-usage-limit before passing it to the server in commit 5cfba1ad6 Thanks again for the report. Thank you for the commit. I didn't notice about the escaping and it

Re: CI: Unfamiliar error while testing macOS

2023-09-21 Thread Daniel Gustafsson
> On 21 Sep 2023, at 05:25, Hayato Kuroda (Fujitsu) > wrote: > > Dear hackers, > > While developing my patch, I found that the CI for macOS failed with unknown > error [1]. > Do you know the reason why it happened? Please tell me if you have > workarounds... > > It failed the test at

Re: bug fix and documentation improvement about vacuumdb

2023-09-21 Thread Daniel Gustafsson
> On 21 Sep 2023, at 03:53, Kuwamura Masaki > wrote: > When sending an update, please include the previous patch as well with your > new > tests as a 0002 patch in a patchset. The CFBot can only apply and build/test > patches when the entire patchset is attached to the email. The below >

Re: Make --help output fit within 80 columns per line

2023-09-21 Thread Peter Eisentraut
On 31.08.23 09:47, torikoshia wrote: BTW, psql --help outputs the content of PGHOST, which caused a failure in the test: ``` -h, --host=HOSTNAME  database server host or socket directory (default: "/var/folders/m7/9snkd5b54cx_b4lxkl9ljlccgn/T/LobrmSUf7t")

Re: [PoC] pg_upgrade: allow to upgrade publisher node

2023-09-21 Thread Michael Paquier
On Wed, Sep 20, 2023 at 11:28:33AM +, Hayato Kuroda (Fujitsu) wrote: > Good catch, I could not notice because it worked well in my RHEL. Here is the > updated version. I am getting slowly up to date with this patch.. But before going in depth with more review, there is something that I got

Re: Bug fix in vacuumdb --buffer-usage-limit xxx -Z

2023-09-21 Thread David Rowley
On Thu, 21 Sept 2023 at 17:59, Michael Paquier wrote: > That was fast. If I may ask, why don't you have some regression tests > for the two code paths of vacuumdb that append this option to the > commands generated for VACUUM and ANALYZE? I think we have differing standards for what constitutes

Re: pg_upgrade --check fails to warn about abstime

2023-09-21 Thread Suraj Kharage
Thanks, Alvaro, for working on this. The patch looks good to me. + * similar to the above, but for types that were removed in 12. Comment can start with a capital letter. Also, We need to backport the same, right? On Wed, Sep 20, 2023 at 10:24 PM Alvaro Herrera wrote: > I got a complaint

Re: Unlogged relation copy is not fsync'd

2023-09-21 Thread Noah Misch
On Fri, Sep 15, 2023 at 02:47:45PM +0300, Heikki Linnakangas wrote: > On 05/09/2023 21:20, Robert Haas wrote: > Thinking about this some more, I think this is still not 100% correct, even > with the patch I posted earlier: > > > /* > > * When we WAL-logged rel pages, we must nonetheless

Re: Comment about set_join_pathlist_hook()

2023-09-21 Thread Lepikhov Andrei
On Thu, Sep 21, 2023, at 12:53 PM, Etsuro Fujita wrote: > Hi, > > On Thu, Sep 21, 2023 at 11:49 AM Lepikhov Andrei > wrote: >> On Wed, Sep 20, 2023, at 5:05 PM, Etsuro Fujita wrote: >> > What I am concerned about from the report [1] is that this comment is >> > a bit too terse; it might cause a

Re: pg_upgrade and logical replication

2023-09-21 Thread Michael Paquier
On Wed, Sep 20, 2023 at 04:54:36PM +0530, Amit Kapila wrote: > Is the check to ensure remote_lsn is valid correct in function > check_for_subscription_state()? How about the case where the apply > worker didn't receive any change but just marked the relation as > 'ready'? I may be missing, of