summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas2011-10-06 16:08:59 +0000
committerRobert Haas2011-10-06 16:09:33 +0000
commit1cb018dd09268cab7f4ac1e8ab59b2277e7709f1 (patch)
treecd4d6437dd44a9e9b5cbf01f450d2795ac7fe694
parent416e82ce9f0c8c4ec6d377368d670b8ca74097a6 (diff)
Make pgstatindex respond to cancel interrupts.
A similar problem for pgstattuple() was fixed in April of 2010 by commit 33065ef8bc52253ae855bc959576e52d8a28ba06, but pgstatindex() seems to have been overlooked. Back-patch all the way, as with that commit, though not to 7.4 through 8.1, since those are now EOL.
-rw-r--r--contrib/pgstattuple/pgstatindex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/pgstattuple/pgstatindex.c b/contrib/pgstattuple/pgstatindex.c
index 178065ceda..beff1b9855 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);