From: | shveta malik <shveta(dot)malik(at)gmail(dot)com> |
---|---|
To: | "Zhijie Hou (Fujitsu)" <houzj(dot)fnst(at)fujitsu(dot)com> |
Cc: | vignesh C <vignesh21(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Euler Taveira <euler(at)eulerto(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, shveta malik <shveta(dot)malik(at)gmail(dot)com> |
Subject: | Re: Logical Replication of sequences |
Date: | 2025-10-15 04:11:31 |
Message-ID: | CAJpy0uCSKChetEw1buBrZu3vAV8OYv3X9MygNxKHw5WWzMd1Gg@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Please find a few more comments on 002:
1)
- This catalog only contains tables known to the subscription after running
+ This catalog only contains tables and sequences known to the
subscription after running
Shall we get rid of 'only' now?
2)
+ * A single sequencesync worker synchronizes all sequences, so
+ * only stop workers when relation kind is not sequence.
This comment refers sequencesync worker which is in future patches. Is it okay?
3)
UpdateSubscriptionRelState
if (!HeapTupleIsValid(tup))
elog(ERROR, "subscription table %u in subscription %u
does not exist",
relid, subid);
table -->relation as AlterSubscription_refresh_seq() also invokes this.
4)
check_publications_origin :
if (res->status != WALRCV_OK_TUPLES)
ereport(ERROR,
(errcode(ERRCODE_CONNECTION_FAILURE),
errmsg("could not receive list of
replicated tables from the publisher: %s",
res->err)));
It could be sequences also.
We can either make it as 'replicated tables and/or sequences' or
simply 'replicated relations'
5)
fetch_relation_list:
Same here:
if (res->status != WALRCV_OK_TUPLES)
ereport(ERROR,
(errcode(ERRCODE_CONNECTION_FAILURE),
errmsg("could not receive list of
replicated tables from the publisher: %s",
res->err)));
6)
CreateSubscription:
/*
* Connect to remote side to execute requested commands and fetch table
* info.
*/
We can update this existing comment to mention sequences as well.
thanks
Shveta
From | Date | Subject | |
---|---|---|---|
Next Message | Ajin Cherian | 2025-10-15 04:26:55 | Re: Improve pg_sync_replication_slots() to wait for primary to advance |
Previous Message | Thomas Munro | 2025-10-15 04:00:07 | Re: IO in wrong state on riscv64 |