]> granicus.if.org Git - postgresql/commit
Check interrupts during logical decoding more frequently.
authorAndres Freund <andres@anarazel.de>
Sun, 29 Jun 2014 15:08:04 +0000 (17:08 +0200)
committerAndres Freund <andres@anarazel.de>
Mon, 30 Jun 2014 10:02:15 +0000 (12:02 +0200)
commit6ad903d70a440eb0fbe0b33ceb87a8b0a81cb240
treece37d4aaa2e5056f521a42be123d375e8eaaa71a
parentd27d493a4e465c7b3a9e2749e0b69d51aa1e3133
Check interrupts during logical decoding more frequently.

When reading large amounts of preexisting WAL during logical decoding
using the SQL interface we possibly could fail to check interrupts in
due time. Similarly the same could happen on systems with a very high
WAL volume while creating a new logical replication slot, independent
of the used interface.

Previously these checks where only performed in xlogreader's read_page
callbacks, while waiting for new WAL to be produced. That's not
sufficient though, if there's never a need to wait.  Walsender's send
loop already contains a interrupt check.

Backpatch to 9.4 where the logical decoding feature was introduced.
src/backend/replication/logical/logical.c
src/backend/replication/logical/logicalfuncs.c