Commit c161ea13 authored by Robert Haas's avatar Robert Haas

Update and improve comments.

Commits 6f6b99d1 and
f3b0897a didn't properly update
these comments.

Etsuro Fujita, reviewed by Amit Langote

Discussion: http://postgr.es/m/5A671FE1.6020305@lab.ntt.co.jp
parent 6d933da3
...@@ -1725,14 +1725,11 @@ make_partition_op_expr(PartitionKey key, int keynum, ...@@ -1725,14 +1725,11 @@ make_partition_op_expr(PartitionKey key, int keynum,
/* /*
* get_qual_for_hash * get_qual_for_hash
* *
* Given a list of partition columns, modulus and remainder corresponding to a * Returns a CHECK constraint expression to use as a hash partition's
* partition, this function returns CHECK constraint expression Node for that * constraint, given the parent relation and partition bound structure.
* partition.
* *
* The partition constraint for a hash partition is always a call to the * The partition constraint for a hash partition is always a call to the
* built-in function satisfies_hash_partition(). The first two arguments are * built-in function satisfies_hash_partition().
* the modulus and remainder for the partition; the remaining arguments are the
* values to be hashed.
*/ */
static List * static List *
get_qual_for_hash(Relation parent, PartitionBoundSpec *spec) get_qual_for_hash(Relation parent, PartitionBoundSpec *spec)
...@@ -1812,7 +1809,7 @@ get_qual_for_hash(Relation parent, PartitionBoundSpec *spec) ...@@ -1812,7 +1809,7 @@ get_qual_for_hash(Relation parent, PartitionBoundSpec *spec)
* get_qual_for_list * get_qual_for_list
* *
* Returns an implicit-AND list of expressions to use as a list partition's * Returns an implicit-AND list of expressions to use as a list partition's
* constraint, given the partition key and bound structures. * constraint, given the parent relation and partition bound structure.
* *
* The function returns NIL for a default partition when it's the only * The function returns NIL for a default partition when it's the only
* partition since in that case there is no constraint. * partition since in that case there is no constraint.
...@@ -2086,7 +2083,7 @@ get_range_nulltest(PartitionKey key) ...@@ -2086,7 +2083,7 @@ get_range_nulltest(PartitionKey key)
* get_qual_for_range * get_qual_for_range
* *
* Returns an implicit-AND list of expressions to use as a range partition's * Returns an implicit-AND list of expressions to use as a range partition's
* constraint, given the partition key and bound structures. * constraint, given the parent relation and partition bound structure.
* *
* For a multi-column range partition key, say (a, b, c), with (al, bl, cl) * For a multi-column range partition key, say (a, b, c), with (al, bl, cl)
* as the lower bound tuple and (au, bu, cu) as the upper bound tuple, we * as the lower bound tuple and (au, bu, cu) as the upper bound tuple, we
......
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