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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy