pgsql: Check interrupts during logical decoding more frequently.

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: Check interrupts during logical decoding more frequently.
Дата
Msg-id E1X1XIE-0001fw-Qi@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Check interrupts during logical decoding more frequently.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1cbc9480106241aaa8db112331e93d0a265b6db0

Modified Files
--------------
src/backend/replication/logical/logical.c      |    7 ++-----
src/backend/replication/logical/logicalfuncs.c |    1 +
2 files changed, 3 insertions(+), 5 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: Fix typos in the cluster_name commit.
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Check interrupts during logical decoding more frequently.