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

From PG Doc comments form
Subject One of the example queries that 'could' is identical to one that 'could not'.
Date
Msg-id 163991655494.26053.16534427118514526140@wrigleys.postgresql.org
Whole thread Raw
Responses Re: One of the example queries that 'could' is identical to one that 'could not'.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/14/indexes-index-only-scans.html
Description:

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. I believe this is
what was meant:
"""""""""""""""""""
but these queries could not:

SELECT x, z FROM tab WHERE x = 'key';
SELECT x FROM tab WHERE x = 'key' AND z < 42;
"""""""""""""""""""

should read:
"""""""""""""""""""
but these queries could not:

SELECT x, z FROM tab WHERE x = 'key';
SELECT z FROM tab WHERE x = 'key' AND z < 42;
"""""""""""""""""""

pgsql-docs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: 11.7. Indexes on Expressions
Next
From: Tom Lane
Date:
Subject: Re: One of the example queries that 'could' is identical to one that 'could not'.