]> granicus.if.org Git - postgresql/commit
Remove spclocation field from pg_tablespace
authorMagnus Hagander <magnus@hagander.net>
Wed, 7 Dec 2011 09:35:00 +0000 (10:35 +0100)
committerMagnus Hagander <magnus@hagander.net>
Wed, 7 Dec 2011 09:37:33 +0000 (10:37 +0100)
commit16d8e594acd96661267cb7897834f9cba51a2ffd
tree4ab54a17950270328b54550af91aae4e2c6e245f
parentc6e3ac11b60ac4a8942ab964252d51c1c0bd8845
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 link.
13 files changed:
contrib/pg_upgrade/info.c
contrib/pg_upgrade/tablespace.c
doc/src/sgml/catalogs.sgml
doc/src/sgml/func.sgml
doc/src/sgml/xaggr.sgml
src/backend/commands/tablespace.c
src/backend/utils/adt/misc.c
src/bin/pg_dump/pg_dumpall.c
src/bin/psql/describe.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/catalog/pg_tablespace.h
src/include/utils/builtins.h