mirror of
https://github.com/postgres/postgres.git
synced 2026-02-21 08:50:51 -05: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
3d332c8f38
commit
5308abfd89
1 changed files with 2 additions and 0 deletions
|
|
@ -155,6 +155,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue