@@ -636,7 +636,7 @@ pathman_config_contains_relation(Oid relid, Datum *values, bool *isnull,
636636
637637 /* Perform checks for non-NULL columns */
638638 Assert (!isnull [Anum_pathman_config_partrel - 1 ]);
639- Assert (!isnull [Anum_pathman_config_expression - 1 ]);
639+ Assert (!isnull [Anum_pathman_config_expr - 1 ]);
640640 Assert (!isnull [Anum_pathman_config_parttype - 1 ]);
641641 }
642642
@@ -686,8 +686,8 @@ pathman_config_invalidate_parsed_expression(Oid relid)
686686 HeapTuple new_htup ;
687687
688688 /* Reset parsed expression */
689- values [Anum_pathman_config_expression_p - 1 ] = (Datum ) 0 ;
690- nulls [Anum_pathman_config_expression_p - 1 ] = true;
689+ values [Anum_pathman_config_cooked_expr - 1 ] = (Datum ) 0 ;
690+ nulls [Anum_pathman_config_cooked_expr - 1 ] = true;
691691
692692 rel = heap_open (get_pathman_config_relid (false), RowExclusiveLock );
693693
@@ -714,13 +714,13 @@ pathman_config_refresh_parsed_expression(Oid relid,
714714 HeapTuple htup_new ;
715715
716716 /* get and parse expression */
717- expr_cstr = TextDatumGetCString (values [Anum_pathman_config_expression - 1 ]);
717+ expr_cstr = TextDatumGetCString (values [Anum_pathman_config_expr - 1 ]);
718718 expr_datum = cook_partitioning_expression (relid , expr_cstr , NULL );
719719 pfree (expr_cstr );
720720
721721 /* prepare tuple values */
722- values [Anum_pathman_config_expression_p - 1 ] = expr_datum ;
723- isnull [Anum_pathman_config_expression_p - 1 ] = false;
722+ values [Anum_pathman_config_cooked_expr - 1 ] = expr_datum ;
723+ isnull [Anum_pathman_config_cooked_expr - 1 ] = false;
724724
725725 rel = heap_open (get_pathman_config_relid (false), RowExclusiveLock );
726726
@@ -816,7 +816,7 @@ read_pathman_config(void)
816816 /* These attributes are marked as NOT NULL, check anyway */
817817 Assert (!isnull [Anum_pathman_config_partrel - 1 ]);
818818 Assert (!isnull [Anum_pathman_config_parttype - 1 ]);
819- Assert (!isnull [Anum_pathman_config_expression - 1 ]);
819+ Assert (!isnull [Anum_pathman_config_expr - 1 ]);
820820
821821 /* Extract values from Datums */
822822 relid = DatumGetObjectId (values [Anum_pathman_config_partrel - 1 ]);
0 commit comments