diff options
| author | Robert Haas <rhaas@postgresql.org> | 2011-10-06 12:08:59 -0400 |
|---|---|---|
| committer | Robert Haas <rhaas@postgresql.org> | 2011-10-06 12:10:19 -0400 |
| commit | b77b6015d84a30caa31977af3667a7e42f6e82a1 (patch) | |
| tree | 0a201eaee5fab0b975b64f2125e65408b453fc71 | |
| parent | ddc36df7af954f36648c675922b96e73897c7b27 (diff) | |
Make pgstatindex respond to cancel interrupts.
A similar problem for pgstattuple() was fixed in April of 2010 by commit
33065ef8bc52253ae855bc959576e52d8a28ba06, 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.
| -rw-r--r-- | contrib/pgstattuple/pgstatindex.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/pgstattuple/pgstatindex.c b/contrib/pgstattuple/pgstatindex.c index 9a7af67778c..c3d080ca551 100644 --- a/contrib/pgstattuple/pgstatindex.c +++ b/contrib/pgstattuple/pgstatindex.c @@ -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); |
