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>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, 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 18:48:55
Message-ID: fe1cde9e-1e52-4f24-3ff7-d01f28a63790@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

>You are right about freopen(), but stderr works just because it's being
>parsed as a file, not a stream, by parse_slash_copy().

You are right. I wrote about stderr without inspecting code (

>I would keep the memset(buf, 0, sizeof(*buf)) for the members we
>are not setting.

Of course. Original code (src/port/win32stat.c) contains line

memset(buf, 0, sizeof(*buf))

before call GetFileInformationByHandle().

With best regards,
Dmitry Koval.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2021-11-19 00:36:23 Re: BUG #17255: Server crashes in index_delete_sort_cmp() due to race condition with vacuum
Previous Message Juan José Santamaría Flecha 2021-11-18 18:13:53 Re: BUG #17288: PSQL bug with COPY command (Windows)