From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
---|---|
To: | vignesh C <vignesh21(at)gmail(dot)com> |
Cc: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, "shiy(dot)fnst(at)fujitsu(dot)com" <shiy(dot)fnst(at)fujitsu(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>, "kuroda(dot)hayato(at)fujitsu(dot)com" <kuroda(dot)hayato(at)fujitsu(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Handle infinite recursion in logical replication setup |
Date: | 2022-07-11 11:33:34 |
Message-ID: | CAA4eK1J6MCobv6ftGdrKebFD-bQCVq8wcD6fzj-yP8BEjv0qXg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sat, Jul 9, 2022 at 8:11 PM vignesh C <vignesh21(at)gmail(dot)com> wrote:
>
Thanks, a few more comments on v30_0002*
1.
+/*
+ * Represents whether copy_data parameter is specified with off, on or force.
A comma is required after on.
2.
qsort(subrel_local_oids, list_length(subrel_states),
sizeof(Oid), oid_cmp);
+ check_pub_table_subscribed(wrconn, sub->publications, copy_data,
+ sub->origin, subrel_local_oids,
+ list_length(subrel_states));
We can avoid using list_length by using an additional variable in this case.
3.
errmsg("table: \"%s.%s\" might have replicated data in the publisher",
+ nspname, relname),
Why ':' is used after the table in the above message? I don't see such
a convention at other places in the code. Also, having might in the
error messages makes it less clear, so, can we slightly change the
message as in the attached patch?
4. I have made some additional changes in the comments, kindly check
the attached and merge those if you are okay.
5.
+$node_C->safe_psql(
+ 'postgres', "
+ DELETE FROM tab_full");
+$node_B->safe_psql(
+ 'postgres', "
+ DELETE FROM tab_full where a = 13");
Don't we need to wait for these operations to replicate?
--
With Regards,
Amit Kapila.
Attachment | Content-Type | Size |
---|---|---|
v30_0002_amit.patch | application/octet-stream | 3.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Dilip Kumar | 2022-07-11 11:39:11 | Re: making relfilenodes 56 bits |
Previous Message | Kyotaro Horiguchi | 2022-07-11 09:45:07 | Re: Fix gcc warning in sync.c (usr/src/backend/storage/sync/sync.c) |