From: | Josh Kupershmidt <schmiddy(at)gmail(dot)com> |
---|---|
To: | keshav upadhyaya <ukeshav2009(at)gmail(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: Regarding Sequential Scans count increase each time we press refresh . |
Date: | 2009-09-25 21:22:41 |
Message-ID: | 4ec1cf760909251422j501d7e40oc5444a2889c48dda@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice pgsql-performance |
On Thu, Sep 24, 2009 at 1:41 PM, keshav upadhyaya <ukeshav2009(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | walty | 2009-09-26 08:27:04 | text field slow to display in pgadmin |
Previous Message | Tim Bowden | 2009-09-25 03:05:01 | Re: what comes after apt-get for a Debian installation? |
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Janes | 2009-09-26 02:53:56 | Re: PG 8.3 and large shared buffer settings |
Previous Message | Aidan Van Dyk | 2009-09-25 16:15:42 | Re: PG 8.3 and large shared buffer settings |