mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	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.
This commit is contained in:
		@@ -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;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user