pgsql: Prevent CRLF conversion of inputs in json_parser test module

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема pgsql: Prevent CRLF conversion of inputs in json_parser test module
Дата
Msg-id E1sRIUD-0012Us-6G@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
REL_17_STABLE

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

Modified Files
--------------
src/test/modules/test_json_parser/test_json_parser_incremental.c | 2 +-
src/test/modules/test_json_parser/test_json_parser_perf.c        | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Prevent CRLF conversion of inputs in json_parser test module
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Extend pg_get_acl() to handle sub-object IDs