Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5308abf

Browse files
committed
Make pgstatindex respond to cancel interrupts.
A similar problem for pgstattuple() was fixed in April of 2010 by commit 33065ef, 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.
1 parent 3d332c8 commit 5308abf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/pgstattuple/pgstatindex.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ pgstatindex(PG_FUNCTION_ARGS)
155155
Page page;
156156
BTPageOpaque opaque;
157157

158+
CHECK_FOR_INTERRUPTS();
159+
158160
/* Read and lock buffer */
159161
buffer = ReadBuffer(rel, blkno);
160162
LockBuffer(buffer, BUFFER_LOCK_SHARE);

0 commit comments

Comments
 (0)