diff options
author | Thomas Munro <tmunro@postgresql.org> | 2023-01-06 16:38:46 +1300 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2023-01-06 16:50:23 +1300 |
commit | af209b7893f45af04f1b6f6304e9882069111da7 (patch) | |
tree | d6aad3fbd8d035b12f219315bd8869ab6bae972c /src/backend/utils/adt/jsonpath_exec.c | |
parent | 8cd190e13a22dab12e86f7f1b59de6b9b128c784 (diff) | |
download | postgresql-af209b7893f45af04f1b6f6304e9882069111da7.tar.gz postgresql-af209b7893f45af04f1b6f6304e9882069111da7.zip |
Fix pg_truncate() on Windows.
Commit 57faaf376 added pg_truncate(const char *path, off_t length), but
"length" was ignored under WIN32 and the file was unconditionally
truncated to 0.
There was no live bug, since the only caller passes 0.
Fix, and back-patch to 14 where the function arrived.
Author: Justin Pryzby <pryzby@telsasoft.com>
Discussion: https://postgr.es/m/20230106031652.GR3109%40telsasoft.com
Diffstat (limited to 'src/backend/utils/adt/jsonpath_exec.c')
0 files changed, 0 insertions, 0 deletions