pgsql: Fix misuse of Relids for storing attribute numbers - Mailing list pgsql-committers

From Richard Guo
Subject pgsql: Fix misuse of Relids for storing attribute numbers
Date
Msg-id E1uwtHh-000Gvz-0x@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix misuse of Relids for storing attribute numbers

The typedef Relids (Bitmapset *) is intended to represent set of
relation identifiers, but was incorrectly used in several places to
store sets of attribute numbers.  This is my oversight in e2debb643.

Fix that by replacing such usages with Bitmapset * to reflect the
correct semantics.

Author: Junwang Zhao <zhjwpku@gmail.com>
Reviewed-by: Tender Wang <tndrwang@gmail.com>
Reviewed-by: Richard Guo <guofenglinux@gmail.com>
Discussion: https://postgr.es/m/CAEG8a3LJhp_xriXf39iCz0TsK+M-2biuhDhpLC6Baxw8+ZYT3A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2d756ebbe857e3d395d18350bf232300ebd23981

Modified Files
--------------
src/backend/optimizer/util/clauses.c | 2 +-
src/backend/optimizer/util/plancat.c | 6 +++---
src/include/optimizer/plancat.h      | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Add more information for WAL records of hash index AMs
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Silence compiler warnings on clang 21