Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c161ea1

Browse files
committed
Update and improve comments.
Commits 6f6b99d and f3b0897 didn't properly update these comments. Etsuro Fujita, reviewed by Amit Langote Discussion: http://postgr.es/m/5A671FE1.6020305@lab.ntt.co.jp
1 parent 6d933da commit c161ea1

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/backend/catalog/partition.c

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,14 +1725,11 @@ make_partition_op_expr(PartitionKey key, int keynum,
17251725
/*
17261726
* get_qual_for_hash
17271727
*
1728-
* Given a list of partition columns, modulus and remainder corresponding to a
1729-
* partition, this function returns CHECK constraint expression Node for that
1730-
* partition.
1728+
* Returns a CHECK constraint expression to use as a hash partition's
1729+
* constraint, given the parent relation and partition bound structure.
17311730
*
17321731
* The partition constraint for a hash partition is always a call to the
1733-
* built-in function satisfies_hash_partition(). The first two arguments are
1734-
* the modulus and remainder for the partition; the remaining arguments are the
1735-
* values to be hashed.
1732+
* built-in function satisfies_hash_partition().
17361733
*/
17371734
static List *
17381735
get_qual_for_hash(Relation parent, PartitionBoundSpec *spec)
@@ -1812,7 +1809,7 @@ get_qual_for_hash(Relation parent, PartitionBoundSpec *spec)
18121809
* get_qual_for_list
18131810
*
18141811
* Returns an implicit-AND list of expressions to use as a list partition's
1815-
* constraint, given the partition key and bound structures.
1812+
* constraint, given the parent relation and partition bound structure.
18161813
*
18171814
* The function returns NIL for a default partition when it's the only
18181815
* partition since in that case there is no constraint.
@@ -2086,7 +2083,7 @@ get_range_nulltest(PartitionKey key)
20862083
* get_qual_for_range
20872084
*
20882085
* Returns an implicit-AND list of expressions to use as a range partition's
2089-
* constraint, given the partition key and bound structures.
2086+
* constraint, given the parent relation and partition bound structure.
20902087
*
20912088
* For a multi-column range partition key, say (a, b, c), with (al, bl, cl)
20922089
* as the lower bound tuple and (au, bu, cu) as the upper bound tuple, we

0 commit comments

Comments
 (0)