]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add CHECK_FOR_INTERRUPTS in ExecInsert's speculative insertion loop.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 4 Aug 2022 18:10:06 +0000 (14:10 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 4 Aug 2022 18:10:06 +0000 (14:10 -0400)
commit2e2f3435af8bf5a5a79b8ba423e9049b73f85ef8
tree5b9f5337864c7f8c2df74ee9cdeafb06d0606693
parente94c52fca6e10f227d5635112eb7f11f767f7a8d
Add CHECK_FOR_INTERRUPTS in ExecInsert's speculative insertion loop.

Ordinarily the functions called in this loop ought to have plenty
of CFIs themselves; but we've now seen a case where no such CFI is
reached, making the loop uninterruptible.  Even though that's from
a recently-introduced bug, it seems prudent to install a CFI at
the loop level in all branches.

Per discussion of bug #17558 from Andrew Kesper (an actual fix for
that bug will follow).

Discussion: https://postgr.es/m/17558-3f6599ffcf52fd4a@postgresql.org
src/backend/executor/nodeModifyTable.c