Remove spclocation field from pg_tablespace
Instead, add a function pg_tablespace_location(oid) used to return
the same information, and do this by reading the symbolic link.
Doing it this way makes it possible to relocate a tablespace when the
database is down by simply changing the symbolic lin
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
--
REL9_1_STABLE
Details
---
http://git.po
Better error reporting if the link target is too long
This situation won't set errno, so using %m will give an incorrect
error message.
Branch
--
master
Details
---
http://git.postgresql.org/pg/commitdiff/0d9b09282fbf2a21160d57d2f11785cb23841909
Modified Files
--
src/backend
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.postgresq
Fix corner cases in readlink() usage.
Make sure all calls are protected by HAVE_READLINK, and get the buffer
overflow tests right. Be a bit more paranoid about string length in
_tarWriteHeader(), too.
Branch
--
REL9_1_STABLE
Details
---
http://git.postgresql.org/pg/commitdiff/85d85ff7ef
Fix corner cases in readlink() usage.
Make sure all calls are protected by HAVE_READLINK, and get the buffer
overflow tests right. Be a bit more paranoid about string length in
_tarWriteHeader(), too.
Branch
--
master
Details
---
http://git.postgresql.org/pg/commitdiff/0d0ec527afec5e7bc
Add const qualifiers to node inspection functions
Thomas Munro
Branch
--
master
Details
---
http://git.postgresql.org/pg/commitdiff/d5f23af6bfbc454e86dd16e5c7a0bfc0cf6189d0
Modified Files
--
src/backend/nodes/copyfuncs.c| 518 +-
src/b