Re: freeing bms explicitly - Mailing list pgsql-hackers

From Zhihong Yu
Subject Re: freeing bms explicitly
Date
Msg-id CALNJ-vQORfQ=vicbKA_RmeGZGzm1y3WsEcZqXWi7qjN43Cz_vg@mail.gmail.com
Whole thread Raw
Responses Re: freeing bms explicitly  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: shared-memory based stats collector - v67
Next
From: Thomas Munro
Date:
Subject: Re: [PATCH] add relation and block-level filtering to pg_waldump