diff --git a/contrib/pgstattuple/pgstatindex.c b/contrib/pgstattuple/pgstatindex.c index 509e31f1a85..80a6793d23f 100644 --- a/contrib/pgstattuple/pgstatindex.c +++ b/contrib/pgstattuple/pgstatindex.c @@ -299,6 +299,8 @@ pgstatindex(PG_FUNCTION_ARGS) Buffer buffer = ReadBuffer(rel, blkno); BTPageStat stat; + CHECK_FOR_INTERRUPTS(); + /* scan one page */ stat.blkno = blkno; GetBTPageStatistics(blkno, buffer, &stat);