Content-Length: 263613 | pFad | http://github.com/postgrespro/postgres_cluster/commit/181ccbb5e49cdc628e0c8334a9ed57dbc736efe8

90 Add comment about default partition in check_new_partition_bound · postgrespro/postgres_cluster@181ccbb · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/181ccbb5e49cdc628e0c8334a9ed57dbc736efe8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy