aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2018-03-26 12:00:25 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2018-03-26 12:03:42 -0300
commit530bcf7581574d5b0f26c2eaeef1c32bbcd37907 (patch)
treedc676cc3b4624689d54aef8281ac031a921267a7
parent186b6df2e62251e5e1f3cae8a3257c7226f4188c (diff)
downloadpostgresql-530bcf7581574d5b0f26c2eaeef1c32bbcd37907.tar.gz
postgresql-530bcf7581574d5b0f26c2eaeef1c32bbcd37907.zip
Fix thinko in comment
The listed numbers disagreed with the ones being used in the symbols; but instead of just fixing the numbers in the comment, use the symbolic name instead, which seems clearer. This has been wrong all along, so apply back to 9.5 where BRIN was introduced. Reported-by: Tomas Vondra Discussion: https://postgr.es/m/5ff514f2-8b1e-6366-b11c-8e2ed442562d@2ndquadrant.com
-rw-r--r--src/backend/access/brin/brin_inclusion.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/backend/access/brin/brin_inclusion.c b/src/backend/access/brin/brin_inclusion.c
index 25428777f77..6ce355c6a97 100644
--- a/src/backend/access/brin/brin_inclusion.c
+++ b/src/backend/access/brin/brin_inclusion.c
@@ -59,10 +59,14 @@
/*-
* The values stored in the bv_values arrays correspond to:
*
- * 0 - the union of the values in the block range
- * 1 - whether an empty value is present in any tuple in the block range
- * 2 - whether the values in the block range cannot be merged (e.g. an IPv6
- * address amidst IPv4 addresses).
+ * INCLUSION_UNION
+ * the union of the values in the block range
+ * INCLUSION_UNMERGEABLE
+ * whether the values in the block range cannot be merged
+ * (e.g. an IPv6 address amidst IPv4 addresses)
+ * INCLUSION_CONTAINS_EMPTY
+ * whether an empty value is present in any tuple
+ * in the block range
*/
#define INCLUSION_UNION 0
#define INCLUSION_UNMERGEABLE 1