Re: Allow continuations in "pg_hba.conf" files - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Allow continuations in "pg_hba.conf" files
Date
Msg-id 875646.1599231631@sss.pgh.pa.us
Whole thread Raw
In response to Re: Allow continuations in "pg_hba.conf" files  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
Fabien COELHO <coelho@cri.ensmp.fr> writes:
> I notice that buf.data is not freed. I guess that the server memory 
> management will recover it.

Yeah, it's in the transient context holding all of the results of
reading the file.  I considered pfree'ing it at the end of the
function, but I concluded there's no point.  The space will be
recycled when the context is destroyed, and since we're not (IIRC)
going to allocate anything more in that context, nothing would be
gained by freeing it earlier --- it'd just stay as unused memory
within the context.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Ideas about a better API for postgres_fdw remote estimates
Next
From: Alvaro Herrera
Date:
Subject: Re: [PATCH]Fix ja.po error