From b57cfb439bd377cfe6d01b4254dde00ae54412ac Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Thu, 10 Aug 2023 12:04:07 +0200 Subject: Document RelationGetIndexAttrBitmap better Commit 19d8e2308bc5 changed the list of set-of-columns that can be returned by RelationGetIndexAttrBitmap, but didn't update its "documentation". That was pretty hard to read already, so rewrite to make it more comprehensible, adding the missing values while at it. Backpatch to 16, like that commit. Discussion: https://postgr.es/m/20230809091155.7c7f3gttjk3dj4ze@alvherre.pgsql Reviewed-by: Tomas Vondra --- src/include/utils/relcache.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include/utils') diff --git a/src/include/utils/relcache.h b/src/include/utils/relcache.h index beeb28b83cb..38524641f47 100644 --- a/src/include/utils/relcache.h +++ b/src/include/utils/relcache.h @@ -54,6 +54,9 @@ extern List *RelationGetIndexPredicate(Relation relation); extern Datum *RelationGetIndexRawAttOptions(Relation indexrel); extern bytea **RelationGetIndexAttOptions(Relation relation, bool copy); +/* + * Which set of columns to return by RelationGetIndexAttrBitmap. + */ typedef enum IndexAttrBitmapKind { INDEX_ATTR_BITMAP_KEY, -- cgit v1.2.3