Adjust comments for `IndexOptInfo` to accurately reflect indexcollations's length

From: Junwang Zhao <zhjwpku(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Adjust comments for `IndexOptInfo` to accurately reflect indexcollations's length
Date: 2025-11-22 12:44:13
Message-ID: CAEG8a3LwbZgMKOQ9CmZarX5DEipKivdHp5PZMOO-riL0w=L=4A@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Length of indexcollations[] in `IndexOptInfo` is nkeycolumns, but
struct comments fail to express this, it says:

indexkeys[], indexcollations[] each have ncolumns entries.

So we should polish this description. trivial patch attached.

--
Regards
Junwang Zhao

Attachment Content-Type Size
0001-indexcollations-length-should-be-nkeycolumns.patch application/octet-stream 1.1 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Mihail Nikalayeu 2025-11-22 12:52:17 Re: isolation tester limitation in case of multiple injection points in a single command
Previous Message Álvaro Herrera 2025-11-22 12:29:12 Re: Issues with ON CONFLICT UPDATE and REINDEX CONCURRENTLY