pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dmitry Koval <d.koval@postgrespro.ru>
To: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #17288: PSQL bug with COPY command (Windows)
Date: Thu, 18 Nov 2021 16:27:24 +0300
Message-ID: <f4461390-407c-00cb-9137-05bcdd390c83@postgrespro.ru> (raw)
In-Reply-To: <CAC+AXB02qGeNP_hNK8mio9GPFbeAAESjVJciLNs6gQo-ykEc_w@mail.gmail.com>
References: <17288-6b58a91025a8a8a3@postgresql.org>
	<b95273fb-a51a-d0a9-e4a8-501e32e204e5@postgrespro.ru>
	<YZYDZwDtw/Ioojb4@paquier.xyz>
	<CAC+AXB02qGeNP_hNK8mio9GPFbeAAESjVJciLNs6gQo-ykEc_w@mail.gmail.com>

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.





view thread (29+ messages)  latest in thread

Message-ID: <f4461390-407c-00cb-9137-05bcdd390c83@postgrespro.ru>
Permalink:  ../f4461390-407c-00cb-9137-05bcdd390c83@postgrespro.ru/
Also on:    postgresql.org/message-id/f4461390-407c-00cb-9137-05bcdd390c83@postgrespro.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: d.koval@postgrespro.ru, juanjo.santamaria@gmail.com, michael@paquier.xyz, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17288: PSQL bug with COPY command (Windows)
  In-Reply-To: <f4461390-407c-00cb-9137-05bcdd390c83@postgrespro.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox