Incorrect check in 037_except.pl?

Started by Fujii Masao4 months ago6 messageshackers
Jump to latest
#1Fujii Masao
masao.fujii@gmail.com

Hi,

$result =
$node_publisher->safe_psql('postgres', "SELECT * FROM tab1 ORDER BY a");
is( $result, qq(1
2),
"check replication of a table in the EXCEPT clause of one
publication but included by another"
);

In 037_except.pl, this query is executed on the publisher. But,
if the intent is to verify that rows inserted on the publisher are
replicated to the subscriber, shouldn't this query be executed on
the subscriber instead? IOW, should "$node_publisher" here be
"$node_subscriber"? Or am I missing something?

Regards,

--
Fujii Masao

#2Ayush Tiwari
ayushtiwari.slg01@gmail.com
In reply to: Fujii Masao (#1)
Re: Incorrect check in 037_except.pl?

Hi,

On Wed, 22 Jul 2026 at 18:29, Fujii Masao <masao.fujii@gmail.com> wrote:

Hi,

$result =
$node_publisher->safe_psql('postgres', "SELECT * FROM tab1 ORDER BY
a");
is( $result, qq(1
2),
"check replication of a table in the EXCEPT clause of one
publication but included by another"
);

In 037_except.pl, this query is executed on the publisher. But,
if the intent is to verify that rows inserted on the publisher are
replicated to the subscriber, shouldn't this query be executed on
the subscriber instead? IOW, should "$node_publisher" here be
"$node_subscriber"? Or am I missing something?

Yeah you're right, it should likely be the subscriber.

Same issue appears twice (the "FOR TABLE" and "FOR ALL TABLES" cases);
both need the change.

Regards,
Ayush

#3Fujii Masao
masao.fujii@gmail.com
In reply to: Ayush Tiwari (#2)
Re: Incorrect check in 037_except.pl?

On Wed, Jul 22, 2026 at 10:38 PM Ayush Tiwari
<ayushtiwari.slg01@gmail.com> wrote:

Yeah you're right, it should likely be the subscriber.

Same issue appears twice (the "FOR TABLE" and "FOR ALL TABLES" cases);
both need the change.

Thanks for the check! Attached patch fixes the issue.

Regards,

--
Fujii Masao

Attachments:

v1-0001-Fix-EXCEPT-publication-test-to-check-subscriber.patchapplication/octet-stream; name=v1-0001-Fix-EXCEPT-publication-test-to-check-subscriber.patchDownload+2-3
#4Ayush Tiwari
ayushtiwari.slg01@gmail.com
In reply to: Fujii Masao (#3)
Re: Incorrect check in 037_except.pl?

Hi,

On Thu, 23 Jul 2026 at 12:54, Fujii Masao <masao.fujii@gmail.com> wrote:

On Wed, Jul 22, 2026 at 10:38 PM Ayush Tiwari
<ayushtiwari.slg01@gmail.com> wrote:

Yeah you're right, it should likely be the subscriber.

Same issue appears twice (the "FOR TABLE" and "FOR ALL TABLES" cases);
both need the change.

Thanks for the check! Attached patch fixes the issue.

Thanks for the patch!

Looks good to me.

Regards,
Ayush

#5Amit Kapila
amit.kapila16@gmail.com
In reply to: Ayush Tiwari (#4)
Re: Incorrect check in 037_except.pl?

On Thu, Jul 23, 2026 at 2:55 PM Ayush Tiwari
<ayushtiwari.slg01@gmail.com> wrote:

On Thu, 23 Jul 2026 at 12:54, Fujii Masao <masao.fujii@gmail.com> wrote:

On Wed, Jul 22, 2026 at 10:38 PM Ayush Tiwari
<ayushtiwari.slg01@gmail.com> wrote:

Yeah you're right, it should likely be the subscriber.

Same issue appears twice (the "FOR TABLE" and "FOR ALL TABLES" cases);
both need the change.

Thanks for the check! Attached patch fixes the issue.

Thanks for the patch!

Looks good to me.

LGTM as well. Thanks for taking care of this.

--
With Regards,
Amit Kapila.

#6Fujii Masao
masao.fujii@gmail.com
In reply to: Amit Kapila (#5)
Re: Incorrect check in 037_except.pl?

On Thu, Jul 23, 2026 at 8:05 PM Amit Kapila <amit.kapila16@gmail.com> wrote:

Looks good to me.

LGTM as well. Thanks for taking care of this.

Thanks to both of you for the reviews! I've pushed the patch.

Regards,

--
Fujii Masao