Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 181ccbb

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 this much.
1 parent 2fe9777 commit 181ccbb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/backend/catalog/partition.c

+6
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)