pgsql: Create memory context for tokenization after opening top-level f

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Create memory context for tokenization after opening top-level f
Дата
Msg-id E1oy12M-000ZEt-Uw@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Create memory context for tokenization after opening top-level file in hba.c

The memory context was created before attempting to open the first HBA
or ident file, which would cause it to leak.  This had no consequences
for the system views for HBA and ident files, but this would cause
memory leaks in the postmaster on reload if the initial HBA and/or ident
files are missing, which is a valid behavior while the backend is
running.

Oversight in efc9816.

Author: Ted Yu
Discussion: https://postgr.es/m/CALte62xH6ivgiKKzPRJgfekPZC6FKLB3xbnf3=tZmc_gKj78dw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d46ad72f464beafa6d92d60d214412374559e280

Modified Files
--------------
src/backend/libpq/hba.c | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: pgsql: Expand AclMode to 64 bits
Следующее
От: David Rowley
Дата:
Сообщение: pgsql: Speedup hash index builds by skipping needless binary searches