diff --git a/contrib/pgstattuple/pgstatindex.c b/contrib/pgstattuple/pgstatindex.c index 9a7af67778..c3d080ca55 100644 --- a/contrib/pgstattuple/pgstatindex.c +++ b/contrib/pgstattuple/pgstatindex.c @@ -155,6 +155,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);