Re: Index of expression over table row or column - Mailing list pgsql-docs

From Laurenz Albe
Subject Re: Index of expression over table row or column
Date
Msg-id fb83431b59299474a44353f70f552c7fd34e73f7.camel@cybertec.at
Whole thread Raw
In response to Re: Index of expression over table row or column  (Steve Lau <stevelauc@outlook.com>)
Responses Re: Index of expression over table row or column
List pgsql-docs
On Wed, 2024-10-16 at 04:00 +0000, Steve Lau wrote:

> Regarding Tom’s reply, IMHO, “LOWER(last_name || ' ' || first_name)” is still an
> expression over table columns? Would you like to elaborate on it a bit?

Well, a table row consists of columns.  So something that depends on or uses several
columns can be said to be "on the table row".  I'd say that the documentation is
correct, but if it gives you trouble, perhaps it should be improved.

And what would you say about this (silly) example:

  CREATE TABLE x (a integer, b integer);
  CREATE INDEX ON x(hash_record(x));

Yours,
Laurenz Albe



pgsql-docs by date:

Previous
From: Steve Lau
Date:
Subject: Re: Index of expression over table row or column
Next
From: Steve Lau
Date:
Subject: Re: Index of expression over table row or column