agora inbox for pgsql-docs@postgresql.org  
help / color / mirror / Atom feed
Documentation mistake?
3+ messages / 3 participants
[nested] [flat]

* Documentation mistake?
@ 2024-10-24 18:04 PG Doc comments form <noreply@postgresql.org>
  2024-10-25 14:39 ` Re: Documentation mistake? David G. Johnston <david.g.johnston@gmail.com>
  2024-10-25 14:44 ` Re: Documentation mistake? Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 2 replies; 3+ messages in thread

From: PG Doc comments form @ 2024-10-24 18:04 UTC (permalink / raw)
  To: pgsql-docs@lists.postgresql.org; +Cc: fed.guman@gmail.com

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/17/indexes-bitmap-scans.html
Description:

In page https://www.postgresql.org/docs/current/indexes-bitmap-scans.html
написано следующее:
"Another example is that if we have separate indexes on x and y, one
possible implementation of a query like WHERE x = 5 AND y = 6 is to use each
index with the appropriate query clause and then AND together the index
results to identify the result rows".
You mean "WHERE x = 5 OR y = 6"?
result from index scan by x + result from index scan by y 
Thx.


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Documentation mistake?
  2024-10-24 18:04 Documentation mistake? PG Doc comments form <noreply@postgresql.org>
@ 2024-10-25 14:39 ` David G. Johnston <david.g.johnston@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: David G. Johnston @ 2024-10-25 14:39 UTC (permalink / raw)
  To: fed.guman@gmail.com <fed.guman@gmail.com>; pgsql-docs@lists.postgresql.org <pgsql-docs@lists.postgresql.org>

On Thursday, October 24, 2024, PG Doc comments form <noreply@postgresql.org>
wrote:

> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/17/indexes-bitmap-scans.html
> Description:
>
> In page https://www.postgresql.org/docs/current/indexes-bitmap-scans.html
> написано следующее:
> "Another example is that if we have separate indexes on x and y, one
> possible implementation of a query like WHERE x = 5 AND y = 6 is to use
> each
> index with the appropriate query clause and then AND together the index
> results to identify the result rows".
>
>
This is a correct and intended sentence.  The paragraph for bitmap covers
both OR from the earlier example and AND from this example.

David J.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Documentation mistake?
  2024-10-24 18:04 Documentation mistake? PG Doc comments form <noreply@postgresql.org>
@ 2024-10-25 14:44 ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2024-10-25 14:44 UTC (permalink / raw)
  To: fed.guman@gmail.com; +Cc: pgsql-docs@lists.postgresql.org

PG Doc comments form <noreply@postgresql.org> writes:
> In page https://www.postgresql.org/docs/current/indexes-bitmap-scans.html
> написано следующее:
> "Another example is that if we have separate indexes on x and y, one
> possible implementation of a query like WHERE x = 5 AND y = 6 is to use each
> index with the appropriate query clause and then AND together the index
> results to identify the result rows".

> You mean "WHERE x = 5 OR y = 6"?

No; the query says AND.  Unioning the index results would be
appropriate if it said OR, but that's a different topic.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2024-10-25 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-10-24 18:04 Documentation mistake? PG Doc comments form <noreply@postgresql.org>
2024-10-25 14:39 ` David G. Johnston <david.g.johnston@gmail.com>
2024-10-25 14:44 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox