From: | Thomas Munro <tmunro(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix pg_truncate() on Windows. |
Date: | 2023-01-06 04:06:40 |
Message-ID: | E1pDe07-002GT8-Sg@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(at)telsasoft(dot)com>
Discussion: https://postgr.es/m/20230106031652.GR3109%40telsasoft.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/72aea955d49712a17c08748aa9abcbcf98c32fc5
Modified Files
--------------
src/backend/storage/file/fd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2023-01-06 04:06:48 | pgsql: Fix pg_truncate() on Windows. |
Previous Message | Thomas Munro | 2023-01-05 21:39:08 | pgsql: Use unnamed POSIX semaphores on Cygwin. |