Adjust comments for `IndexOptInfo` to accurately reflect indexcollations's length - Mailing list pgsql-hackers

From Junwang Zhao
Subject Adjust comments for `IndexOptInfo` to accurately reflect indexcollations's length
Date
Msg-id CAEG8a3LwbZgMKOQ9CmZarX5DEipKivdHp5PZMOO-riL0w=L=4A@mail.gmail.com
Whole thread Raw
Responses Re: Adjust comments for `IndexOptInfo` to accurately reflect indexcollations's length
List 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

pgsql-hackers by date:

Previous
From: Álvaro Herrera
Date:
Subject: Re: Issues with ON CONFLICT UPDATE and REINDEX CONCURRENTLY
Next
From: Mihail Nikalayeu
Date:
Subject: Re: isolation tester limitation in case of multiple injection points in a single command