diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2024-07-09 17:29:48 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2024-07-09 17:34:47 -0400 |
commit | e72f787ea6b287ed624c1f5be71eb13e405b1577 (patch) | |
tree | 774ccab7ef38f068e43a9057232064b641641bb1 /src/backend/utils/adt/xml.c | |
parent | d3e076549b99d1130053223adb9c1fa909d75dc0 (diff) | |
download | postgresql-e72f787ea6b287ed624c1f5be71eb13e405b1577.tar.gz postgresql-e72f787ea6b287ed624c1f5be71eb13e405b1577.zip |
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
Diffstat (limited to 'src/backend/utils/adt/xml.c')
0 files changed, 0 insertions, 0 deletions