pgsql: Preserve caller's memory context in ProcessCompletedNotifies().

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Preserve caller's memory context in ProcessCompletedNotifies().
Дата
Msg-id E1QPzdO-0005N2-5j@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Preserve caller's memory context in ProcessCompletedNotifies().

This is necessary to avoid long-term memory leakage, because the main loop
in PostgresMain expects to be executing in MessageContext, and hence is a
bit sloppy about freeing stuff that is only needed for the duration of
processing the current client message.  The known case of an actual leak
is when encoding conversion has to be done on the incoming command string,
but there might be others.  Per report from Per-Olov Esgard.

Back-patch to 9.0, where the bug was introduced by the LISTEN/NOTIFY
rewrite.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/90857b48e1f69dbca52f498bd444190d36dbd73f

Modified Files
--------------
src/backend/commands/async.c |    9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)


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

Предыдущее
От: okbob@pgfoundry.org (User Okbob)
Дата:
Сообщение: orafce - orafce: new files - PostgreSQL 9.1 extensions support
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Preserve caller's memory context in ProcessCompletedNotifies().