From: Álvaro Herrera <alvherre@kurilemu.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove open-coding of index_set_state_flags
Date: Wed, 11 Nov 2026 15:17:47 +0000
Message-ID: <E1xRA55-00000000KLw-35DF@gemulon.postgresql.org> (raw)
Remove open-coding of index_set_state_flags
(The new code does reset indisclustered and indisreplident in addition
to indisvalid, but that doesn't harm anything as far as I can tell.)
I (Álvaro) failed to notice I was writing duplicate code for commit
8b08f7d4820f.
Extracted from a larger patch by the same author.
Author: Justin Pryzby <pryzbyj@telsasoft.com>
Reviewed-by: Alexander Pyhalov <a.pyhalov@postgrespro.ru>
Discussion: https://postgr.es/m/20201031063117.GF3080@telsasoft.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2b4b768537f39ab5ebc31548829889a0bf2e4395
Modified Files
--------------
src/backend/commands/indexcmds.c | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: alvherre@kurilemu.de
Subject: Re: pgsql: Remove open-coding of index_set_state_flags
In-Reply-To: <E1xRA55-00000000KLw-35DF@gemulon.postgresql.org>
References: <E1xRA55-00000000KLw-35DF@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