RE: Bug in error reporting for multi-line JSON - Mailing list pgsql-bugs

From tanghy.fnst@fujitsu.com
Subject RE: Bug in error reporting for multi-line JSON
Date
Msg-id OS0PR01MB61137C4054774F44E3A9DC89FBC69@OS0PR01MB6113.jpnprd01.prod.outlook.com
Whole thread Raw
In response to Bug in error reporting for multi-line JSON  (Simon Riggs <simon.riggs@enterprisedb.com>)
Responses Re: Bug in error reporting for multi-line JSON  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-bugs
On Tuesday, March 2, 2021 6:50 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>Daniel Gustafsson <daniel@yesql.se> writes:
>> I'm changing the status of this patch to Ready for Committer.
>
>I reviewed this and pushed it, with some changes.

I think the while condition "context_start < context_end" added in commit ffd3944ab9 is useless. Thoughts?

code added in ffd3944ab9
+ while (context_end - context_start >= 50 && context_start < context_end)

Regards,
Tang




pgsql-bugs by date:

Previous
From: Дилян Палаузов
Date:
Subject: Re: No libldap_r in OpenLDAP 2.5 - use LDAP_API_FEATURE_X_OPENLDAP_REENTRANT from ldap_features.h
Next
From: Daniel Gustafsson
Date:
Subject: Re: Bug in error reporting for multi-line JSON