mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Review wording on tablespaces w.r.t. partitioned tables
Remove a redundant comment, and document pg_class.reltablespace properly in catalogs.sgml. After commitsa36c84c3e4,87259588d0and others. Backpatch to 12. Discussion: https://postgr.es/m/202403191013.w2kr7wqlamqz@alvherre.pgsql
This commit is contained in:
		@@ -1980,9 +1980,12 @@ SCRAM-SHA-256$<replaceable><iteration count></replaceable>:<replaceable>&l
 | 
			
		||||
       (references <link linkend="catalog-pg-tablespace"><structname>pg_tablespace</structname></link>.<structfield>oid</structfield>)
 | 
			
		||||
      </para>
 | 
			
		||||
      <para>
 | 
			
		||||
       The tablespace in which this relation is stored.  If zero,
 | 
			
		||||
       the database's default tablespace is implied.  (Not meaningful
 | 
			
		||||
       if the relation has no on-disk file.)
 | 
			
		||||
       The tablespace in which this relation is stored.
 | 
			
		||||
       If zero, the database's default tablespace is implied.
 | 
			
		||||
       Not meaningful if the relation has no on-disk file,
 | 
			
		||||
       except for partitioned tables, where this is the tablespace
 | 
			
		||||
       in which partitions will be created when one is not
 | 
			
		||||
       specified in the creation command.
 | 
			
		||||
      </para></entry>
 | 
			
		||||
     </row>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -782,10 +782,6 @@ DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId,
 | 
			
		||||
	}
 | 
			
		||||
	else if (stmt->partbound)
 | 
			
		||||
	{
 | 
			
		||||
		/*
 | 
			
		||||
		 * For partitions, when no other tablespace is specified, we default
 | 
			
		||||
		 * the tablespace to the parent partitioned table's.
 | 
			
		||||
		 */
 | 
			
		||||
		Assert(list_length(inheritOids) == 1);
 | 
			
		||||
		tablespaceId = get_rel_tablespace(linitial_oid(inheritOids));
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user