Commit 181ccbb5 authored by Alvaro Herrera's avatar Alvaro Herrera

Add comment about default partition in check_new_partition_bound

The intention of the test is not immediately obvious, so we need this
much.
parent 2fe97771
......@@ -858,6 +858,12 @@ check_new_partition_bound(char *relname, Relation parent,
if (spec->is_default)
{
/*
* The default partition bound never conflicts with any other
* partition's; if that's what we're attaching, the only possible
* problem is that one already exists, so check for that and we're
* done.
*/
if (boundinfo == NULL || !partition_bound_has_default(boundinfo))
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment