Re: Patch to address creation of PgStat* contexts with null parent context - Mailing list pgsql-hackers

From Kyotaro Horiguchi
Subject Re: Patch to address creation of PgStat* contexts with null parent context
Date
Msg-id 20220805.174001.172831392189505144.horikyota.ntt@gmail.com
Whole thread Raw
In response to Re: Patch to address creation of PgStat* contexts with null parent context  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
List pgsql-hackers
At Fri, 05 Aug 2022 17:22:38 +0900 (JST), Kyotaro Horiguchi <horikyota.ntt@gmail.com> wrote in 
> Thus I thought that we may let pgstat_initialize() promptly allocate
> the memory.
> 
> Does it make sense?
> 
> 
> About the patch, I had something like the attached in my mind.

I haven't fully checked, but this change might cause all other calls
to CreateCacheMemoryContext useless.

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center



pgsql-hackers by date:

Previous
From: Etsuro Fujita
Date:
Subject: Re: postgres_fdw: batch inserts vs. before row triggers
Next
From: "wangw.fnst@fujitsu.com"
Date:
Subject: RE: Data is copied twice when specifying both child and parent table in publication