public inbox for [email protected]
help / color / mirror / Atom feedFrom: Lukas Fittl <[email protected]>
To: Heikki Linnakangas <[email protected]>
Cc: Daniel Gustafsson <[email protected]>
Cc: Gaurav Singh <[email protected]>
Cc: [email protected]
Subject: Re: Memory leak in pg_stat_statements when qtext file contains invalid encoding
Date: Fri, 27 Mar 2026 08:25:47 -0700
Message-ID: <CAP53PkwciXaP2TQLjkjLGHD1+HEtBfCcpfd25xCnGbgQErpocA@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CAEcQ1bYR9s4eQLFDjzzJHU8fj-MTbmRpW-9J-r2gsCn+HEsynw@mail.gmail.com>
<CAP53Pky1575W1euSUwj2Zc5b0kBFZqpNuvMOGCvU_bR1tmD7zA@mail.gmail.com>
<[email protected]>
<[email protected]>
<[email protected]>
On Fri, Mar 27, 2026 at 4:13 AM Heikki Linnakangas <[email protected]> wrote:
>
> On 27/03/2026 11:05, Daniel Gustafsson wrote:
> >> On 27 Mar 2026, at 09:59, Heikki Linnakangas <[email protected]> wrote:
> >
> >> Hmm, perhaps. But there's a simpler, less invasive fix. When that code was written, we didn't have MCXT_ALLOC_HUGE nor MCXT_ALLOC_NO_OOM. Now that we do, we can just use palloc_extended(MCXT_ALLOC_HUGE | MCXT_ALLOC_NO_OOM) instead of raw malloc(). Per attached.
> >
> > LGTM.
>
> Committed, thanks!
Thanks for the quick fix!
TIL about MCXT_ALLOC_NO_OOM, that's useful to know about.
Thanks,
Lukas
--
Lukas Fittl
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: Memory leak in pg_stat_statements when qtext file contains invalid encoding
In-Reply-To: <CAP53PkwciXaP2TQLjkjLGHD1+HEtBfCcpfd25xCnGbgQErpocA@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox