File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -751,8 +751,7 @@ read_pathman_config(void)
751
751
while ((htup = heap_getnext (scan , ForwardScanDirection )) != NULL )
752
752
{
753
753
Datum values [Natts_pathman_config ];
754
- bool upd_expr ,
755
- isnull [Natts_pathman_config ];
754
+ bool isnull [Natts_pathman_config ];
756
755
Oid relid ; /* partitioned table */
757
756
758
757
/* Extract Datums from tuple 'htup' */
@@ -765,7 +764,6 @@ read_pathman_config(void)
765
764
766
765
/* Extract values from Datums */
767
766
relid = DatumGetObjectId (values [Anum_pathman_config_partrel - 1 ]);
768
- upd_expr = isnull [Anum_pathman_config_expression_p - 1 ];
769
767
770
768
/* Check that relation 'relid' exists */
771
769
if (get_rel_type_id (relid ) == InvalidOid )
@@ -777,12 +775,8 @@ read_pathman_config(void)
777
775
errhint (INIT_ERROR_HINT )));
778
776
}
779
777
780
- if (upd_expr )
781
- invalidate_pathman_relation_info (relid , NULL );
782
- else
783
- refresh_pathman_relation_info (relid ,
784
- values ,
785
- true); /* allow lazy prel loading */
778
+ /* get_pathman_relation_info() will refresh this entry */
779
+ invalidate_pathman_relation_info (relid , NULL );
786
780
}
787
781
788
782
/* Clean resources */
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ refresh_pathman_relation_info(Oid relid,
139
139
140
140
AssertTemporaryContext ();
141
141
prel = invalidate_pathman_relation_info (relid , NULL );
142
+ Assert (prel );
142
143
143
144
/* Try locking parent, exit fast if 'allow_incomplete' */
144
145
if (allow_incomplete )
You can’t perform that action at this time.
0 commit comments