Re: freeing bms explicitly

Zhihong Yu <zyu@yugabyte.com>

From: Zhihong Yu <zyu@yugabyte.com>
To: akapila@postgresql.org, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2022-03-21T21:30:52Z
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
>
>
>

Commits

  1. Remove some useless free calls.