Re: BUG #17288: PSQL bug with COPY command (Windows)

Dmitry Koval <d.koval@postgrespro.ru>

From: Dmitry Koval <d.koval@postgrespro.ru>
To: Michael Paquier <michael@paquier.xyz>
Cc: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2021-11-24T07:44:09Z
Lists: pgsql-bugs
 >Is that because running vcregress.pl implies a redirection of stdout so
 >we would never see, except from a terminal?

Unfortunately, you are.
All my COPY-tests work well with files.
I see a problem in the terminal only ...

With best regards,
Dmitry Koval.



Commits

  1. Fix compatibility thinko for fstat() on standard streams in win32stat.c

  2. Fix fstat() emulation on Windows with standard streams