agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Amit Langote <amitlan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Assert index_attnos[0] == 1 in ri_FastPathFlushArray()
Date: Fri, 10 Apr 2026 06:28:30 +0000
Message-ID: <E1wB5Lx-000G3o-2Y@gemulon.postgresql.org> (raw)

Assert index_attnos[0] == 1 in ri_FastPathFlushArray()

ri_FastPathFlushArray() handles single-column FKs only, so
index_attnos[0] is always 1.  Add an Assert to make this invariant
explicit, as a followup to 980c1a85d819.

Suggested-by: Junwang Zhao <zhjwpku@gmail.com> (offlist)
Discussion: https://www.postgresql.org/message-id/CADfhSr-pCkbDxmiOVYSAGE5QGjsQ48KKH_W424SPk%2BpwzKZFaQ%40mail.g...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/155c03ee9d449589fa93aabcac41d643d03875b9

Modified Files
--------------
src/backend/utils/adt/ri_triggers.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



Message-ID: <E1wB5Lx-000G3o-2Y@gemulon.postgresql.org>
Permalink:  ../E1wB5Lx-000G3o-2Y@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wB5Lx-000G3o-2Y@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: amitlan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Assert index_attnos[0] == 1 in ri_FastPathFlushArray()
  In-Reply-To: <E1wB5Lx-000G3o-2Y@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox