Re: BUG #18224: message bug in libpqwalreceiver.c.

From: king tomo <t(dot)katsumata1122(at)gmail(dot)com>
To: t(dot)katsumata1122(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18224: message bug in libpqwalreceiver.c.
Date: 2023-12-04 11:28:37
Message-ID: CAC55fYeoBvYSyRupWEP+BzGwhdi7R7nvPffM7QhQyqDcpedxig@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hello

This is a simplest patch.
Please check it.

Best regards,
----
Tomonari Katsumata

2023年12月4日(月) 20:25 PG Bug reporting form <noreply(at)postgresql(dot)org>:

> The following bug has been logged on the website:
>
> Bug reference: 18224
> Logged by: Tomonari Katsumata
> Email address: t(dot)katsumata1122(at)gmail(dot)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-SYSTEM
>
> 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
>
>

Attachment Content-Type Size
identify_system_message_revise.patch application/octet-stream 1.2 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Daniel Gustafsson 2023-12-04 12:12:27 Re: BUG #18224: message bug in libpqwalreceiver.c.
Previous Message PG Bug reporting form 2023-12-04 11:24:36 BUG #18224: message bug in libpqwalreceiver.c.