summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEtsuro Fujita2019-10-21 08:30:00 +0000
committerEtsuro Fujita2019-10-21 08:30:00 +0000
commit80831bcdbe80a6ca7f22105e32c2cbb54e125c4c (patch)
tree8c5672d96865c8e4daa2c6c4d56c8e0d38289201
parent70a6c37d524cc2c29712424785be3d9e2e62f484 (diff)
Update obsolete comment.
Commit b52b7dc25, which moved code creating PartitionBoundInfo in RelationBuildPartitionDesc() in partcache.c (relocated to partdesc.c afterwards) to partbounds.c, should have updated this, but didn't. Author: Etsuro Fujita Reviewed-by: Alvaro Herrera Backpatch-through: 12 Discussion: https://postgr.es/m/CAPmGK16Uxr%3DPatiGyaRwiQVLB7Y-GqbkK3AxRLVYzU0Czv%3DsEw%40mail.gmail.com
-rw-r--r--src/backend/partitioning/partbounds.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/partitioning/partbounds.c b/src/backend/partitioning/partbounds.c
index 318d8ecae9a..4bc88104ee9 100644
--- a/src/backend/partitioning/partbounds.c
+++ b/src/backend/partitioning/partbounds.c
@@ -360,9 +360,8 @@ create_list_bounds(PartitionBoundSpec **boundspecs, int nparts,
else
{
/*
- * Never put a null into the values array, flag instead for
- * the code further down below where we construct the actual
- * relcache struct.
+ * Never put a null into the values array; save the index of
+ * the partition that stores nulls, instead.
*/
if (null_index != -1)
elog(ERROR, "found null more than once");