Skip to content

Commit eb6af01

Browse files
committed
Document that COUNT(*) might not need a seq scan any more.
Noted by Josh Kupershmidt.
1 parent db6de5b commit eb6af01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/src/sgml/func.sgml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11102,8 +11102,10 @@ SELECT b1 = ANY((SELECT b2 FROM t2 ...)) FROM t1 ...;
1110211102
<programlisting>
1110311103
SELECT count(*) FROM sometable;
1110411104
</programlisting>
11105-
will be executed by <productname>PostgreSQL</productname> using a
11106-
sequential scan of the entire table.
11105+
will require effort proportional to the size of the table:
11106+
<productname>PostgreSQL</productname> will need to scan either the
11107+
entire table or the entirety of an index which includes all rows in
11108+
the table.
1110711109
</para>
1110811110
</note>
1110911111

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy