@@ -348,14 +348,14 @@ create_partitions_for_value_internal(Oid relid, Datum value, Oid value_type,
348348 /* Get both PartRelationInfo & PATHMAN_CONFIG contents for this relation */
349349 if (pathman_config_contains_relation (relid , values , isnull , NULL , NULL ))
350350 {
351- Oid base_bound_type ; /* base type of prel->atttype */
351+ Oid base_bound_type ; /* base type of prel->ev_type */
352352 Oid base_value_type ; /* base type of value_type */
353353
354354 /* Fetch PartRelationInfo by 'relid' */
355355 prel = get_pathman_relation_info_after_lock (relid , true, & lock_result );
356356 shout_if_prel_is_invalid (relid , prel , PT_RANGE );
357357
358- /* Fetch base types of prel->atttype & value_type */
358+ /* Fetch base types of prel->ev_type & value_type */
359359 base_bound_type = getBaseType (prel -> ev_type );
360360 base_value_type = getBaseType (value_type );
361361
@@ -467,19 +467,15 @@ create_partitions_for_value_internal(Oid relid, Datum value, Oid value_type,
467467
468468/*
469469 * Append\prepend partitions if there's no partition to store 'value'.
470- *
471- * Used by create_partitions_for_value_internal().
472- *
473- * NB: 'value' type is not needed since we've already taken
474- * it into account while searching for the 'cmp_proc'.
470+ * NOTE: Used by create_partitions_for_value_internal().
475471 */
476472static Oid
477473spawn_partitions_val (Oid parent_relid , /* parent's Oid */
478474 const Bound * range_bound_min , /* parent's MIN boundary */
479475 const Bound * range_bound_max , /* parent's MAX boundary */
480476 Oid range_bound_type , /* type of boundary's value */
481477 Datum interval_binary , /* interval in binary form */
482- Oid interval_type , /* INTERVALOID or prel->atttype */
478+ Oid interval_type , /* INTERVALOID or prel->ev_type */
483479 Datum value , /* value to be INSERTed */
484480 Oid value_type , /* type of value */
485481 Oid collid ) /* collation id */
0 commit comments