Re: BUG #15858: could not stat file - over 4GB - Mailing list pgsql-hackers

From Juan José Santamaría Flecha
Subject Re: BUG #15858: could not stat file - over 4GB
Date
Msg-id CAC+AXB25aAHGzmrvKd97jQK3wjYHzbhb72wpvGym6OmFqpj5Sw@mail.gmail.com
Whole thread Raw
In response to Re: BUG #15858: could not stat file - over 4GB  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #15858: could not stat file - over 4GB  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

On Mon, Oct 12, 2020 at 5:27 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Michael Paquier <michael@paquier.xyz> writes:
> Why are we forcing errno=ENOENT here?  Wouldn't it be correct to use
> _dosmaperr(GetLastError()) to get the correct errno?

Fair question.  Juan, was there some good reason not to look at
GetLastError() in this step?

Uhm, a good question indeed, forcing errno serves no purpose there.

Regards,

Juan José Santamaría Flecha

pgsql-hackers by date:

Previous
From: Andy Fan
Date:
Subject: Re: [HACKERS] Runtime Partition Pruning
Next
From: Amit Langote
Date:
Subject: Re: partition routing layering in nodeModifyTable.c