Avoid using readlink() on platforms that don't support it

Magnus Hagander <magnus@hagander.net>

Commit: 1f422db663aa291be4af4b079e7d1b0ef0d78af2
Author: Magnus Hagander <magnus@hagander.net>
Date: 2011-12-07T11:09:05Z
Releases: 9.2.0
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.

Files

PathChange+/−
src/backend/replication/basebackup.c modified +22 −3