diff --git a/contrib/pgstattuple/pgstatindex.c b/contrib/pgstattuple/pgstatindex.c index 178065ceda57f91142675966a939889a4d2eed29..beff1b9855baefb770e8109aa51de45420dc6a37 100644 --- a/contrib/pgstattuple/pgstatindex.c +++ b/contrib/pgstattuple/pgstatindex.c @@ -156,6 +156,8 @@ pgstatindex(PG_FUNCTION_ARGS) Page page; BTPageOpaque opaque; + CHECK_FOR_INTERRUPTS(); + /* Read and lock buffer */ buffer = ReadBuffer(rel, blkno); LockBuffer(buffer, BUFFER_LOCK_SHARE);