8000 Make pgstatindex respond to cancel interrupts. · postwait/postgres@b0d5469 · GitHub
[go: up one dir, main page]

Skip to content

Commit b0d5469

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 ee609b8 commit b0d5469

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
5038
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ pgstatindex(PG_FUNCTION_ARGS)
152152
Page page;
153153
BTPageOpaque opaque;
154154

155+
CHECK_FOR_INTERRUPTS();
156+
155157
/* Read and lock buffer */
156158
buffer = ReadBuffer(rel, blkno);
157159
LockBuffer(buffer, BUFFER_LOCK_SHARE);

0 commit comments

Comments
 (0)
0