Content-Length: 257328 | pFad | http://github.com/postgrespro/postgres/commit/1cb018dd09268cab7f4ac1e8ab59b2277e7709f1

61 Make pgstatindex respond to cancel interrupts. · postgrespro/postgres@1cb018d · GitHub
Skip to content

Commit 1cb018d

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 416e82c commit 1cb018d

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
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ pgstatindex(PG_FUNCTION_ARGS)
156156
Page page;
157157
BTPageOpaque opaque;
158158

159+
CHECK_FOR_INTERRUPTS();
160+
159161
/* Read and lock buffer */
160162
buffer = ReadBuffer(rel, blkno);
161163
LockBuffer(buffer, BUFFER_LOCK_SHARE);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/1cb018dd09268cab7f4ac1e8ab59b2277e7709f1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy