Re: freeing bms explicitly

From: Zhihong Yu <zyu(at)yugabyte(dot)com>
To: akapila(at)postgresql(dot)org, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: freeing bms explicitly
Date: 2022-03-21 21:30:52
Message-ID: CALNJ-vQORfQ=vicbKA_RmeGZGzm1y3WsEcZqXWi7qjN43Cz_vg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> Hi,
> I was looking at calls to bms_free() in PG code.
>
> e.g. src/backend/commands/publicationcmds.c line 362
>
> bms_free(bms);
>
> The above is just an example, there're other calls to bms_free().
> Since the bms is allocated from some execution context, I wonder why this
> call is needed.
>
> When the underlying execution context wraps up, isn't the bms freed ?
>
> Cheers
>
>
>

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2022-03-21 21:38:32 Re: [PATCH] add relation and block-level filtering to pg_waldump
Previous Message Andres Freund 2022-03-21 21:30:17 Re: shared-memory based stats collector - v67