Prevent CRLF conversion of inputs in json_parser test module

Andrew Dunstan <andrew@dunslane.net>

Commit: f7bd0a381de12a5c309f3c19d8c966b77e87cff3
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2024-07-09T21:29:48Z
Releases: 18.0
Prevent CRLF conversion of inputs in json_parser test module

Do this by opening the file in PG_BINARY_R mode. This prevents us from
getting wrong byte count from stat().

Per complaint from Andres Freund

Discussion: https://postgr.es/m/20240707052030.r77hbdkid3mwksop@awork3.anarazel.de

Backpatch to rlease 17 where this code was introduced

Files