From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: t.katsumata1122@gmail.com
Subject: BUG #18224: message bug in libpqwalreceiver.c.
Date: Mon, 04 Dec 2023 11:24:36 +0000
Message-ID: <18224-59c34f71e2c6a5ed@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 18224
Logged by: Tomonari Katsumata
Email address: t.katsumata1122@gmail.com
PostgreSQL version: 16.1
Operating system: any
Description:
Hello
I found a small bug in the error message of libpqwalreceiver.c.
According to the manual, identify_system returns one row and
four columns. (This is also the actual behavior)
https://www.postgresql.org/docs/current/protocol-replication.html#PROTOCOL-REPLICATION-IDENTIFY-SYST...
However, when data other than one row and four columns is returned,
incorrect values are reported as expected values as shown below.
>Could not identify system: got X rows and Y fields, expected 3 rows and 1
or more fields.
It looks like the arguments are in the wrong order.
Also, it seems that the decision to return 4 fields in 9.4 was not
reflected.
This is a trivial issue, but I was curious about it so I reported it.
Best regards,
----
Tomonari Katsumata
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, t.katsumata1122@gmail.com
Subject: Re: BUG #18224: message bug in libpqwalreceiver.c.
In-Reply-To: <18224-59c34f71e2c6a5ed@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox