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

Commit181ccbb

Browse files
committed
Add comment about default partition in check_new_partition_bound
The intention of the test is not immediately obvious, so we need thismuch.
1 parent2fe9777 commit181ccbb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/backend/catalog/partition.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,12 @@ check_new_partition_bound(char *relname, Relation parent,
858858

859859
if (spec->is_default)
860860
{
861+
/*
862+
* The default partition bound never conflicts with any other
863+
* partition's; if that's what we're attaching, the only possible
864+
* problem is that one already exists, so check for that and we're
865+
* done.
866+
*/
861867
if (boundinfo==NULL|| !partition_bound_has_default(boundinfo))
862868
return;
863869

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp