Re: Regarding Sequential Scans count increase each time we press refresh .

Поиск
Список
Период
Сортировка
От Josh Kupershmidt
Тема Re: Regarding Sequential Scans count increase each time we press refresh .
Дата
Msg-id 4ec1cf760909251422j501d7e40oc5444a2889c48dda@mail.gmail.com
обсуждение исходный текст
Ответ на Regarding Sequential Scans count increase each time we press refresh .  (keshav upadhyaya <ukeshav2009@gmail.com>)
Список pgsql-novice
On Thu, Sep 24, 2009 at 1:41 PM, keshav upadhyaya <ukeshav2009@gmail.com> wrote:
> I have one table  my_test table . with on index created on one column .
>
>
> I have turned off the sequential scans .
>
> Now when ever i do refresh on this table or press F5 , It increase the
> sequential scans count and
> Sequential tuple read count .
>
> Pls help me to understand what exactly is happening ?  Is it scanning the
> Table sequentially once i press refresh  ?

Assuming by "turned off the sequential scans", you mean that you've set the
config parameter enable_seqscan=off , note that the documentation says
"It's not possible to suppress sequential scans entirely, but turning
this variable
off discourages the planner from using one if there are other methods
available."

http://www.postgresql.org/docs/current/static/runtime-config-query.html

It sounds like you're accessing your Postgres database through something like
phpPgAdmin or a similar web interface, and you're running a query like:
 SELECT * FROM mytable

A query like this is going to use a sequential scan, regardless of the setting
of enable_seqscan.

Josh

В списке pgsql-novice по дате отправления:

Предыдущее
От: Tim Bowden
Дата:
Сообщение: Re: what comes after apt-get for a Debian installation?
Следующее
От: walty
Дата:
Сообщение: text field slow to display in pgadmin