Skip to content

Commit b6959ee

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 6f4f000 commit b6959ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/pgstattuple/pgstatindex.c

+2
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ pgstatindex(PG_FUNCTION_ARGS)
299299
Buffer buffer = ReadBuffer(rel, blkno);
300300
BTPageStat stat;
301301

302+
CHECK_FOR_INTERRUPTS();
303+
302304
/* scan one page */
303305
stat.blkno = blkno;
304306
GetBTPageStatistics(blkno, buffer, &stat);

0 commit comments

Comments
 (0)