From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Create memory context for tokenization after opening top-level f |
Date: | 2022-11-24 01:28:23 |
Message-ID: | E1oy12M-000ZEt-Uw@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2022-11-24 04:22:44 | pgsql: Speedup hash index builds by skipping needless binary searches |
Previous Message | Andrew Dunstan | 2022-11-24 01:18:24 | Re: pgsql: Expand AclMode to 64 bits |