pgsql: Fix the logic in libpqrcv_receive() to determine if there's any

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Fix the logic in libpqrcv_receive() to determine if there's any
Дата
Msg-id E1PdQ4i-0000Na-OY@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix the logic in libpqrcv_receive() to determine if there's any incoming data
that can be read without blocking. It used to conclude that there isn't, even
though there was data in the socket receive buffer. That lead walreceiver to
flush the WAL after every received chunk, potentially causing big performance
issues.

Backpatch to 9.0, because the performance impact can be very significant.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=a08363d70cb51f361c9525384e9f46a252fcd92e

Modified Files
--------------
.../libpqwalreceiver/libpqwalreceiver.c            |   35 +++++++++----------
1 files changed, 17 insertions(+), 18 deletions(-)


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix the logic in libpqrcv_receive() to determine if there's any
Следующее
От: Bruce Momjian
Дата:
Сообщение: pgsql: More libpq documentation adjustments from Leslie S Satenstein, r