Content-Length: 262848 | pFad | http://github.com/postgrespro/postgres/commit/eb6af016fc04392c41106ac866072914bf66ecd0

6C Document that COUNT(*) might not need a seq scan any more. · postgrespro/postgres@eb6af01 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/eb6af016fc04392c41106ac866072914bf66ecd0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy