File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -871,6 +871,12 @@ brin_summarize_range(PG_FUNCTION_ARGS)
871
871
Relation heapRel ;
872
872
double numSummarized = 0 ;
873
873
874
+ if (RecoveryInProgress ())
875
+ ereport (ERROR ,
876
+ (errcode (ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE ),
877
+ errmsg ("recovery is in progress" ),
878
+ errhint ("BRIN control functions cannot be executed during recovery." )));
879
+
874
880
if (heapBlk64 > BRIN_ALL_BLOCKRANGES || heapBlk64 < 0 )
875
881
{
876
882
char * blk = psprintf (INT64_FORMAT , heapBlk64 );
@@ -942,6 +948,12 @@ brin_desummarize_range(PG_FUNCTION_ARGS)
942
948
Relation indexRel ;
943
949
bool done ;
944
950
951
+ if (RecoveryInProgress ())
952
+ ereport (ERROR ,
953
+ (errcode (ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE ),
954
+ errmsg ("recovery is in progress" ),
955
+ errhint ("BRIN control functions cannot be executed during recovery." )));
956
+
945
957
if (heapBlk64 > MaxBlockNumber || heapBlk64 < 0 )
946
958
{
947
959
char * blk = psprintf (INT64_FORMAT , heapBlk64 );
You can’t perform that action at this time.
0 commit comments