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

Magnus Hagander <magnus@hagander.net>

Commit: 9c32da5caa2efc9bdc7f04ae26488211ff219e8a
Author: Magnus Hagander <magnus@hagander.net>
Date: 2011-12-07T11:09:59Z
Releases: 9.1.3
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