Re: BUG #17288: PSQL bug with COPY command (Windows)
Dmitry Koval <d.koval@postgrespro.ru>
From: Dmitry Koval <d.koval@postgrespro.ru>
To: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>, Michael Paquier <michael@paquier.xyz>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2021-11-18T13:27:24Z
Lists: pgsql-bugs
Three corrections for patch v2-0001-Fixed-Windows-stat-emulation-working-with-streams.patch: 1) I see in debugger that field "st_mode" for stdout has value _S_IFCHR (0x2000, 8192); 2) "st_rdev" feild should have the same value as "st_dev"; 3) we can not use emulated stat information for stderr after call "freopen(OutputFileName, "a", stderr);". With best regards, Dmitry Koval.
Commits
-
Fix compatibility thinko for fstat() on standard streams in win32stat.c
- 5550a9c38519 14.2 landed
- 58651d8dd6a5 15.0 landed
-
Fix fstat() emulation on Windows with standard streams
- d2198b4593cc 14.2 landed
- 10260c794b21 15.0 landed