diff options
author | Magnus Hagander <magnus@hagander.net> | 2011-12-07 10:35:00 +0100 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2011-12-07 10:37:33 +0100 |
commit | 16d8e594acd96661267cb7897834f9cba51a2ffd (patch) | |
tree | 4ab54a17950270328b54550af91aae4e2c6e245f /src/include/utils/builtins.h | |
parent | c6e3ac11b60ac4a8942ab964252d51c1c0bd8845 (diff) | |
download | postgresql-16d8e594acd96661267cb7897834f9cba51a2ffd.tar.gz postgresql-16d8e594acd96661267cb7897834f9cba51a2ffd.zip |
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.
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r-- | src/include/utils/builtins.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index 17550e0b3fd..994dc5368b1 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -469,6 +469,7 @@ extern Datum pg_cancel_backend(PG_FUNCTION_ARGS); extern Datum pg_terminate_backend(PG_FUNCTION_ARGS); extern Datum pg_reload_conf(PG_FUNCTION_ARGS); extern Datum pg_tablespace_databases(PG_FUNCTION_ARGS); +extern Datum pg_tablespace_location(PG_FUNCTION_ARGS); extern Datum pg_rotate_logfile(PG_FUNCTION_ARGS); extern Datum pg_sleep(PG_FUNCTION_ARGS); extern Datum pg_get_keywords(PG_FUNCTION_ARGS); |