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

From Thomas Munro
Subject Re: A micro-optimisation for walkdir()
Date
Msg-id CA+hUKG+mkrvPawBah67YveZtz1TYMa3FxsOC+dgt1tN6DaKnzw@mail.gmail.com
Whole thread Raw
In response to Re: A micro-optimisation for walkdir()  (Magnus Hagander <magnus@hagander.net>)
Responses Re: A micro-optimisation for walkdir()
List pgsql-hackers
On Mon, Sep 7, 2020 at 9:42 PM Magnus Hagander <magnus@hagander.net> wrote:
> On Mon, Sep 7, 2020 at 12:27 AM Thomas Munro <thomas.munro@gmail.com> wrote:
>> I think the following is a little mysterious, but it does seem to be
>> what people do for this in other projects.  It is the documented way
>> to detect mount points, and I guess IO_REPARSE_TAG_MOUNT_POINT is
>> either overloaded also for junctions, or junctions are the same thing
>> as mount points.  It would be nice to see a Win32 documentation page
>> that explicitly said that.
>
> The wikipedia page on it is actually fairly decent: https://en.wikipedia.org/wiki/NTFS_reparse_point. It's not the
documentationof course, but it's easier to read :) The core difference is whether you mount a whole filesystem (mount
point)or just a directory off something mounted elsehwere (junction). 
>
> And yes, the wikipedia page confirms that junctions also use IO_REPARSE_TAG_MOUNT_POINT.

Thanks for confirming.  I ran the Windows patch through pgindent,
fixed a small typo, and pushed.



pgsql-hackers by date:

Previous
From: "Andrey V. Lepikhov"
Date:
Subject: Re: Ideas about a better API for postgres_fdw remote estimates
Next
From: Himanshu Upadhyaya
Date:
Subject: Inaccurate comment, for family-1 polymorphic iso-8859-1 type arguments