mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-21 03:13:05 +08:00
Make pgstatindex respond to cancel interrupts.
A similar problem for pgstattuple() was fixed in April of 2010 by commit
33065ef8bc
, 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.
This commit is contained in:
parent
6f4f000a97
commit
b6959eee38
@ -299,6 +299,8 @@ pgstatindex(PG_FUNCTION_ARGS)
|
||||
Buffer buffer = ReadBuffer(rel, blkno);
|
||||
BTPageStat stat;
|
||||
|
||||
CHECK_FOR_INTERRUPTS();
|
||||
|
||||
/* scan one page */
|
||||
stat.blkno = blkno;
|
||||
GetBTPageStatistics(blkno, buffer, &stat);
|
||||
|
Loading…
Reference in New Issue
Block a user