postgres.git / summary / log / commit / refs

commit    b0d5469a04aac226d140edc3dfedd8aac87310d6
Author:   Robert Haas <rhaas@postgresql.org>
Date:     Thu Oct 06 16:08:59 2011 +0000
First released in: 9.2.0, 8.2.23, 8.3.17, 8.4.10, 9.0.6, 9.1.2

    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.


contrib/pgstattuple/pgstatindex.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/pgstattuple/pgstatindex.c b/contrib/pgstattuple/pgstatindex.c index 1e9fae456eb..a6caef5096d 100644 --- a/contrib/pgstattuple/pgstatindex.c +++ b/contrib/pgstattuple/pgstatindex.c @@ -152,6 +152,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); [parent: ee609b8cfb9e]