Re: Index of expression over table row or column

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Steve Lau <stevelauc(at)outlook(dot)com>
Cc: "pgsql-docs(at)postgresql(dot)org" <pgsql-docs(at)postgresql(dot)org>
Subject: Re: Index of expression over table row or column
Date: 2024-10-16 03:21:15
Message-ID: CAKFQuwZQmoor7GUKdSs9-Yn1fHaTdQzmZ5VWBNdsRiWhH1H-=A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Tuesday, October 15, 2024, Steve Lau <stevelauc(at)outlook(dot)com> wrote:
>
> I am reading this documentation[1], and it has a sentence that I don’t
> quite understand: "The index columns (key values) can be either simple
> columns of the underlying table or expressions over the table rows.”, I am
> thinking that for the index of expressions, aren’t those expressions over
> table column?
>
>
Agreed.

The description for pg_index.indkey uses the phrasing “an expression over
the table columns” and this should be made to match.

I could maybe argue for a singular row, meaning the expression can
reference any or all of a single row’s columns, but not plural and not with
existing wording using “table columns”.

David J.

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2024-10-16 03:23:08 Re: Index of expression over table row or column
Previous Message Steve Lau 2024-10-16 03:07:15 Index of expression over table row or column