pgsql: Avoid using readlink() on platforms that don't support it - Mailing list pgsql-committers

From Magnus Hagander
Subject pgsql: Avoid using readlink() on platforms that don't support it
Date
Msg-id E1RYFXu-0003WO-SJ@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Avoid using readlink() on platforms that don't support it

We don't have any such platforms now, but might in the future.

Also, detect cases when a tablespace symlink points to a path that
is longer than we can handle, and give a warning.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1f422db663aa291be4af4b079e7d1b0ef0d78af2

Modified Files
--------------
src/backend/replication/basebackup.c |   25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Magnus Hagander
Date:
Subject: pgsql: Avoid using readlink() on platforms that don't support it
Next
From: Tom Lane
Date:
Subject: pgsql: Fix corner cases in readlink() usage.