mirror of
https://github.com/postgres/postgres.git
synced 2025-05-01 01:04:50 +03:00
Document that COUNT(*) might not need a seq scan any more.
Noted by Josh Kupershmidt.
This commit is contained in:
parent
db6de5b71e
commit
eb6af016fc
@ -11102,8 +11102,10 @@ SELECT b1 = ANY((SELECT b2 FROM t2 ...)) FROM t1 ...;
|
|||||||
<programlisting>
|
<programlisting>
|
||||||
SELECT count(*) FROM sometable;
|
SELECT count(*) FROM sometable;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
will be executed by <productname>PostgreSQL</productname> using a
|
will require effort proportional to the size of the table:
|
||||||
sequential scan of the entire 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>
|
</para>
|
||||||
</note>
|
</note>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user