pgsql: Fix canAcceptConnections() bugs introduced by replication-relate

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix canAcceptConnections() bugs introduced by replication-relate
Дата
Msg-id E1PHjeT-0005fQ-49@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix canAcceptConnections() bugs introduced by replication-related patches.

We must not return any "okay to proceed" result code without having checked
for too many children, else we might fail later on when trying to add the
new child to one of the per-child state arrays.  It's not clear whether
this oversight explains Stefan Kaltenbrunner's recent report, but it could
certainly produce a similar symptom.

Back-patch to 8.4; the logic was not broken before that.

Branch
------
master

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

Modified Files
--------------
src/backend/postmaster/postmaster.c |   33 +++++++++++++++++++--------------
1 files changed, 19 insertions(+), 14 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix canAcceptConnections() bugs introduced by replication-relate
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Cleanup various comparisons with the constant "true".