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

Commit520e7af

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 parent992189a commit520e7af

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
@@ -1948,9 +1948,12 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
19481948
(references <link linkend="catalog-pg-tablespace"><structname>pg_tablespace</structname></link>.<structfield>oid</structfield>)
19491949
</para>
19501950
<para>
1951-
The tablespace in which this relation is stored. If zero,
1952-
the database's default tablespace is implied. (Not meaningful
1953-
if the relation has no on-disk file.)
1951+
The tablespace in which this relation is stored.
1952+
If zero, the database's default tablespace is implied.
1953+
Not meaningful if the relation has no on-disk file,
1954+
except for partitioned tables, where this is the tablespace
1955+
in which partitions will be created when one is not
1956+
specified in the creation command.
19541957
</para></entry>
19551958
</row>
19561959

‎src/backend/commands/tablecmds.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -715,10 +715,6 @@ DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId,
715715
}
716716
else if (stmt->partbound)
717717
{
718-
/*
719-
* For partitions, when no other tablespace is specified, we default
720-
* the tablespace to the parent partitioned table's.
721-
*/
722718
Assert(list_length(inheritOids) == 1);
723719
tablespaceId = get_rel_tablespace(linitial_oid(inheritOids));
724720
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp