diff options
author | Thomas Munro | 2023-01-06 03:38:46 +0000 |
---|---|---|
committer | Thomas Munro | 2023-01-06 03:42:47 +0000 |
commit | 72aea955d49712a17c08748aa9abcbcf98c32fc5 (patch) | |
tree | 19efa9771f55fb979ba6e1e4d93c182667dc463a /contrib/postgres_fdw/postgres_fdw.c | |
parent | f2857af485a00ab5dbfa2c83af9d83afe4378239 (diff) |
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 <[email protected]>
Discussion: https://postgr.es/m/20230106031652.GR3109%40telsasoft.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions