Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitea299d7

Browse files
committed
Review wording on tablespaces w.r.t. partitioned tables
Remove a redundant comment, and document pg_class.reltablespace properlyin catalogs.sgml.After commitsa36c84c,8725958 and others.Backpatch to 12.Discussion:https://postgr.es/m/202403191013.w2kr7wqlamqz@alvherre.pgsql
1 parentd3d95f5 commitea299d7

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

‎doc/src/sgml/catalogs.sgml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1980,9 +1980,12 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
19801980
(references <link linkend="catalog-pg-tablespace"><structname>pg_tablespace</structname></link>.<structfield>oid</structfield>)
19811981
</para>
19821982
<para>
1983-
The tablespace in which this relation is stored. If zero,
1984-
the database's default tablespace is implied. (Not meaningful
1985-
if the relation has no on-disk file.)
1983+
The tablespace in which this relation is stored.
1984+
If zero, the database's default tablespace is implied.
1985+
Not meaningful if the relation has no on-disk file,
1986+
except for partitioned tables, where this is the tablespace
1987+
in which partitions will be created when one is not
1988+
specified in the creation command.
19861989
</para></entry>
19871990
</row>
19881991

‎src/backend/commands/tablecmds.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -782,10 +782,6 @@ DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId,
782782
}
783783
else if (stmt->partbound)
784784
{
785-
/*
786-
* For partitions, when no other tablespace is specified, we default
787-
* the tablespace to the parent partitioned table's.
788-
*/
789785
Assert(list_length(inheritOids) == 1);
790786
tablespaceId = get_rel_tablespace(linitial_oid(inheritOids));
791787
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp