mirror of
https://github.com/postgres/postgres.git
synced 2025-08-05 07:41:25 +03:00
Add comment about default partition in check_new_partition_bound
The intention of the test is not immediately obvious, so we need this much.
This commit is contained in:
@@ -858,6 +858,12 @@ check_new_partition_bound(char *relname, Relation parent,
|
|||||||
|
|
||||||
if (spec->is_default)
|
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))
|
if (boundinfo == NULL || !partition_bound_has_default(boundinfo))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user