pgsql: Fix readlink() for non-PostgreSQL junction points on Windows.

2025-01-18 Thread Andrew Dunstan
Fix readlink() for non-PostgreSQL junction points on Windows. Since commit c5cb8f3b taught stat() to follow symlinks, and since initdb uses pg_mkdir_p(), and that examines parent directories, our humble readlink() implementation can now be exposed to junction points not of PostgreSQL origin. Thos

pgsql: Fix stat() for recursive junction points on Windows.

2025-01-18 Thread Andrew Dunstan
Fix stat() for recursive junction points on Windows. Commit c5cb8f3b supposed that we'd only ever have to follow one junction point in stat(), because we don't construct longer chains of them ourselves. When examining a parent directory supplied by the user, we should really be able to cope with l

pgsql: Fix stat() for recursive junction points on Windows.

2025-01-18 Thread Andrew Dunstan
Fix stat() for recursive junction points on Windows. Commit c5cb8f3b supposed that we'd only ever have to follow one junction point in stat(), because we don't construct longer chains of them ourselves. When examining a parent directory supplied by the user, we should really be able to cope with l

pgsql: Fix readlink() for non-PostgreSQL junction points on Windows.

2025-01-18 Thread Andrew Dunstan
Fix readlink() for non-PostgreSQL junction points on Windows. Since commit c5cb8f3b taught stat() to follow symlinks, and since initdb uses pg_mkdir_p(), and that examines parent directories, our humble readlink() implementation can now be exposed to junction points not of PostgreSQL origin. Thos

pgsql: Fix stat() for recursive junction points on Windows.

2025-01-18 Thread Andrew Dunstan
Fix stat() for recursive junction points on Windows. Commit c5cb8f3b supposed that we'd only ever have to follow one junction point in stat(), because we don't construct longer chains of them ourselves. When examining a parent directory supplied by the user, we should really be able to cope with l

pgsql: Fix readlink() for non-PostgreSQL junction points on Windows.

2025-01-18 Thread Andrew Dunstan
Fix readlink() for non-PostgreSQL junction points on Windows. Since commit c5cb8f3b taught stat() to follow symlinks, and since initdb uses pg_mkdir_p(), and that examines parent directories, our humble readlink() implementation can now be exposed to junction points not of PostgreSQL origin. Thos