projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db6de5b
)
Document that COUNT(*) might not need a seq scan any more.
author
Robert Haas
<rhaas@postgresql.org>
Fri, 27 Jan 2012 17:40:37 +0000
(12:40 -0500)
committer
Robert Haas
<rhaas@postgresql.org>
Fri, 27 Jan 2012 17:40:37 +0000
(12:40 -0500)
Noted by Josh Kupershmidt.
doc/src/sgml/func.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/func.sgml
b/doc/src/sgml/func.sgml
index 219ba9abf39d946d85246d33f83b571896624e3c..ec1400408436e9d0aa221060ef2dd3f02109c74d 100644
(file)
--- a/
doc/src/sgml/func.sgml
+++ b/
doc/src/sgml/func.sgml
@@
-11102,8
+11102,10
@@
SELECT b1 = ANY((SELECT b2 FROM t2 ...)) FROM t1 ...;
<programlisting>
SELECT count(*) FROM sometable;
</programlisting>
- will be executed by <productname>PostgreSQL</productname> using a
- sequential scan of the entire table.
+ will require effort proportional to the size of the table:
+ <productname>PostgreSQL</productname> will need to scan either the
+ entire table or the entirety of an index which includes all rows in
+ the table.
</para>
</note>