Properly check interrupts in execScan.c.
authorAndres Freund <andres@anarazel.de>
Thu, 14 Sep 2017 08:53:10 +0000 (01:53 -0700)
committerAndres Freund <andres@anarazel.de>
Thu, 14 Sep 2017 09:02:20 +0000 (02:02 -0700)
commit253c8afc9eb178b7241b4cc571acf7fb6ac6f976
tree5ca345d197d7f754942f35016c488ef3faa6162c
parent68a7c24fdf2d69fc57cfb26aba7e119aa6ca2621
Properly check interrupts in execScan.c.

During the development of d47cfef711 the CFI()s in ExecScan() were
moved back and forth, ending up in the wrong place. Thus queries that
largely spend their time in ExecScan(), and have neither projection
nor a qual, can't be cancelled in a timely manner.

Reported-By: Jeff Janes
Author: Andres Freund
Discussion: https://postgr.es/m/CAMkU=1weDXp8eLLPt9SO1LEUsJYYK9cScaGhLKpuN+WbYo9b5g@mail.gmail.com
Backpatch: 10, as d47cfef711
src/backend/executor/execScan.c