diff options
author | Magnus Hagander | 2011-12-07 09:35:00 +0000 |
---|---|---|
committer | Magnus Hagander | 2011-12-07 09:37:33 +0000 |
commit | 16d8e594acd96661267cb7897834f9cba51a2ffd (patch) | |
tree | 4ab54a17950270328b54550af91aae4e2c6e245f /src/backend/commands/tablespace.c | |
parent | c6e3ac11b60ac4a8942ab964252d51c1c0bd8845 (diff) |
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/backend/commands/tablespace.c')
-rw-r--r-- | src/backend/commands/tablespace.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/backend/commands/tablespace.c b/src/backend/commands/tablespace.c index d223f8c9649..93592fabef1 100644 --- a/src/backend/commands/tablespace.c +++ b/src/backend/commands/tablespace.c @@ -314,8 +314,6 @@ CreateTableSpace(CreateTableSpaceStmt *stmt) DirectFunctionCall1(namein, CStringGetDatum(stmt->tablespacename)); values[Anum_pg_tablespace_spcowner - 1] = ObjectIdGetDatum(ownerId); - values[Anum_pg_tablespace_spclocation - 1] = - CStringGetTextDatum(location); nulls[Anum_pg_tablespace_spcacl - 1] = true; nulls[Anum_pg_tablespace_spcoptions - 1] = true; |