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

From: Dmitry Koval <d(dot)koval(at)postgrespro(dot)ru>
To: Juan José Santamaría Flecha <juanjo(dot)santamaria(at)gmail(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>
Cc: PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #17288: PSQL bug with COPY command (Windows)
Date: 2021-11-18 13:27:24
Message-ID: f4461390-407c-00cb-9137-05bcdd390c83@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Amparo Martínez Milvaques 2021-11-18 14:37:34 RE: BUG #17290: Error Installation
Previous Message Dmitry Koval 2021-11-18 13:23:54 Re: BUG #17288: PSQL bug with COPY command (Windows)