Re: Why is this doing a seq scan? - Mailing list pgsql-sql

From Tom Lane
Subject Re: Why is this doing a seq scan?
Date
Msg-id 13934.974491573@sss.pgh.pa.us
Whole thread Raw
In response to Why is this doing a seq scan?  ("Ingram, Bryan" <BIngram@sixtyfootspider.com>)
List pgsql-sql
Hmm.  Have you VACUUM ANALYZED the tables?  If so, what do you get from
these queries:

select attname,attdisbursion,s.*
from pg_statistic s, pg_attribute a, pg_class c
where starelid = c.oid and attrelid = c.oid and staattnum = attnum
and relname = 'zips';

select attname,attdisbursion,s.*
from pg_statistic s, pg_attribute a, pg_class c
where starelid = c.oid and attrelid = c.oid and staattnum = attnum
and relname = 'atms';

Also it would be useful to see the full declarations of the tables
and their indexes; I'm wondering what datatype the zip columns are,
for example.
        regards, tom lane


pgsql-sql by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Requests for Development
Next
From: "Ingram, Bryan"
Date:
Subject: RE: Why is this doing a seq scan?