Re: One of the example queries that 'could' is identical to one that 'could not'. - Mailing list pgsql-docs

From Tom Lane
Subject Re: One of the example queries that 'could' is identical to one that 'could not'.
Date
Msg-id 1881495.1639930503@sss.pgh.pa.us
Whole thread Raw
In response to One of the example queries that 'could' is identical to one that 'could not'.  (PG Doc comments form <noreply@postgresql.org>)
List pgsql-docs
PG Doc comments form <noreply@postgresql.org> writes:
> 11.9.2 lists ```SELECT x FROM tab WHERE x = 'key' AND z < 42;``` as both
> examples of 'could' and 'could not' use index-only scans.

No, look again: one of the queries uses the indexed column y,
and the other uses the non-indexed column z.

            regards, tom lane



pgsql-docs by date:

Previous
From: PG Doc comments form
Date:
Subject: One of the example queries that 'could' is identical to one that 'could not'.
Next
From: PG Doc comments form
Date:
Subject: The pg_stop_backup will return one row with three values.