does "select count(*) from mytable" always do a seq scan?
От
Culley Harrelson
Тема
does "select count(*) from mytable" always do a seq scan?
Дата
Msg-id
529825a3050107064538c85b55@mail.gmail.com
Список
Дерево обсуждения
does "select count(*) from mytable" always do a seq scan? Culley Harrelson <harrelson@gmail.com>
Re: does "select count(*) from mytable" always do a seq Tino Wildenhain <tino@wildenhain.de>
Re: does "select count(*) from mytable" always do a seq Bruno Wolff III <bruno@wolff.to>
Re: does "select count(*) from mytable" always do a seq scan? Culley Harrelson <harrelson@gmail.com>
Re: does "select count(*) from mytable" always do a seq scan? Alex Turner <armtuk@gmail.com>
Re: does "select count(*) from mytable" always do a seq Scott Ribe <scott_ribe@killerbytes.com>
Re: does "select count(*) from mytable" always do a seq Alex Turner <armtuk@gmail.com>
Re: does "select count(*) from mytable" always do a seq Scott Ribe <scott_ribe@killerbytes.com>
Re: does "select count(*) from mytable" always do a seq Alex Turner <armtuk@gmail.com>
Re: does "select count(*) from mytable" always do a seq Bruno Wolff III <bruno@wolff.to>
Re: does "select count(*) from mytable" always do a seq Alex Turner <armtuk@gmail.com>
Re: does "select count(*) from mytable" always do a seq Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: does "select count(*) from mytable" always do a seq Bruno Wolff III <bruno@wolff.to>
Re: does "select count(*) from mytable" always do a seq Michael Fuhr <mike@fuhr.org>
Re: does "select count(*) from mytable" always do a seq Pierre-Frédéric Caillaud<lists@boutiquenumerique.com>
Hi, I am using Postgresql 7.4. I have a table with 1.5 million rows. It has a primary key. VACUUM FULL ANALYZE is run every night. There are 2000-5000 inserts on this table every day but very few updates and deletes. When I select count(*) from this table it is using a sequence scan. Is this just life or is there some way to get this to do an index scan? culley
В списке pgsql-general по дате отправления
От: Tino Wildenhain
Дата: