Skip site navigation (1) Skip section navigation (2)

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

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid using readlink() on platforms that don't support it
Date: 2011-12-07 11:20:18
Message-ID: E1RYFXu-0003WO-SJ@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: 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

Next:From: Tom LaneDate: 2011-12-07 18:34:33
Subject: pgsql: Fix corner cases in readlink() usage.
Previous:From: Jan UrbaƄskiDate: 2011-12-07 10:41:03
Subject: Re: [COMMITTERS] pgsql: plpython: Add SPI cursor support

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group