@@ -470,8 +470,8 @@ check_new_partition_bound(char *relname, Relation parent,
470470 * upper ;
471471
472472 Assert (spec -> strategy == PARTITION_STRATEGY_RANGE );
473- lower = make_one_range_bound (key , -1 , spec -> lowerdatums , true);
474- upper = make_one_range_bound (key , -1 , spec -> upperdatums , false);
473+ lower = make_one_partition_rbound (key , -1 , spec -> lowerdatums , true);
474+ upper = make_one_partition_rbound (key , -1 , spec -> upperdatums , false);
475475
476476 /*
477477 * First check if the resulting range would be empty with
@@ -589,15 +589,15 @@ check_new_partition_bound(char *relname, Relation parent,
589589}
590590
591591/*
592- * check_default_allows_bound
592+ * check_default_partition_contents
593593 *
594594 * This function checks if there exists a row in the default partition that
595595 * would properly belong to the new partition being added. If it finds one,
596596 * it throws an error.
597597 */
598598void
599- check_default_allows_bound (Relation parent , Relation default_rel ,
600- PartitionBoundSpec * new_spec )
599+ check_default_partition_contents (Relation parent , Relation default_rel ,
600+ PartitionBoundSpec * new_spec )
601601{
602602 List * new_part_constraints ;
603603 List * def_part_constraints ;
@@ -757,14 +757,14 @@ get_hash_partition_greatest_modulus(PartitionBoundInfo bound)
757757}
758758
759759/*
760- * make_one_range_bound
760+ * make_one_partition_rbound
761761 *
762762 * Return a PartitionRangeBound given a list of PartitionRangeDatum elements
763763 * and a flag telling whether the bound is lower or not. Made into a function
764764 * because there are multiple sites that want to use this facility.
765765 */
766766PartitionRangeBound *
767- make_one_range_bound (PartitionKey key , int index , List * datums , bool lower )
767+ make_one_partition_rbound (PartitionKey key , int index , List * datums , bool lower )
768768{
769769 PartitionRangeBound * bound ;
770770 ListCell * lc ;
@@ -2052,20 +2052,21 @@ get_range_nulltest(PartitionKey key)
20522052}
20532053
20542054/*
2055- * compute_hash_value
2055+ * compute_partition_hash_value
20562056 *
2057- * Compute the hash value for given not null partition key values.
2057+ * Compute the hash value for given partition key values.
20582058 */
20592059uint64
2060- compute_hash_value (int partnatts , FmgrInfo * partsupfunc ,
2061- Datum * values , bool * isnull )
2060+ compute_partition_hash_value (int partnatts , FmgrInfo * partsupfunc ,
2061+ Datum * values , bool * isnull )
20622062{
20632063 int i ;
20642064 uint64 rowHash = 0 ;
20652065 Datum seed = UInt64GetDatum (HASH_PARTITION_SEED );
20662066
20672067 for (i = 0 ; i < partnatts ; i ++ )
20682068 {
2069+ /* Nulls are just ignored */
20692070 if (!isnull [i ])
20702071 {
20712072 Datum hash ;
0 commit comments