pgsql: Remove redundant test. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Remove redundant test.
Date
Msg-id E1mIuUE-00031M-NE@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Remove redundant test.

The condition "context_start < context_end" is strictly weaker
than "context_end - context_start >= 50", so we don't need both.
Oversight in commit ffd3944ab, noted by tanghy.fnst.

In passing, line-wrap a nearby test to make it more readable.

Discussion: https://postgr.es/m/OS0PR01MB61137C4054774F44E3A9DC89FBC69@OS0PR01MB6113.jpnprd01.prod.outlook.com

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ed740b06b18e1a23becd54c97ff229aba4c94349

Modified Files
--------------
src/backend/utils/adt/jsonfuncs.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Fix broken snapshot handling in parallel workers.
Next
From: John Naylor
Date:
Subject: pgsql: Rename unicode_combining_table to unicode_width_table