pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Assert only valid flag bits are passed to visibilitymap_set()
Date: Sun, 02 Apr 2023 02:19:31 +0000
Message-ID: <E1pinJZ-000w0f-OJ@gemulon.postgresql.org> (raw)

Assert only valid flag bits are passed to visibilitymap_set()

If visibilitymap_set() is called with flags containing a higher bit than
VISIBILITYMAP_ALL_FROZEN, the state of neighboring pages is affected. While
there was an assertion that *some* valid bits were set, it did not check
that *only* valid bits were. Change that.

Discussion: https://postgr.es/m/20230331043300.gux3s5wzrapqi4oe@awork3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a88a18b1250b9e6b40536e4dec04d32d655b8140

Modified Files
--------------
src/backend/access/heap/visibilitymap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



Message-ID: <E1pinJZ-000w0f-OJ@gemulon.postgresql.org>
Permalink:  ../E1pinJZ-000w0f-OJ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pinJZ-000w0f-OJ@gemulon.postgresql.org

 · 

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: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Assert only valid flag bits are passed to visibilitymap_set()
  In-Reply-To: <E1pinJZ-000w0f-OJ@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox