Re: A micro-optimisation for walkdir() - Mailing list pgsql-hackers

From Juan José Santamaría Flecha
Subject Re: A micro-optimisation for walkdir()
Date
Msg-id CAC+AXB12ukw-D22CcYC4F+=pRqgvcLgh5x2Wa07UaUaD+Q0vWA@mail.gmail.com
Whole thread Raw
In response to Re: A micro-optimisation for walkdir()  (Andres Freund <andres@anarazel.de>)
Responses Re: A micro-optimisation for walkdir()  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers

On Sat, Sep 5, 2020 at 2:13 AM Andres Freund <andres@anarazel.de> wrote:

> However, it looks like we might be missing a further opportunity
> here...  Doesn't Windows already give us the flags we need in the
> dwFileAttributes member of the WIN32_FIND_DATA object that the
> Find{First,Next}File() functions populate?

That'd be better...

At first I did not see how to get DT_LNK directly, but it is possible without additional calls, so please find attached a version with that logic.

This version also drops the enum, defining just the macros.

Regards,

Juan José Santamaría Flecha  
Attachment

pgsql-hackers by date:

Previous
From: Ranier Vilela
Date:
Subject: Re: [PATCH] Redudant initilization
Next
From: Tom Lane
Date:
Subject: Re: [PATCH] Redudant initilization