Re: Why is this doing a seq scan?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why is this doing a seq scan?
Дата
Msg-id 13934.974491573@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Why is this doing a seq scan?  ("Ingram, Bryan" <BIngram@sixtyfootspider.com>)
Список 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 по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Requests for Development
Следующее
От: "Ingram, Bryan"
Дата:
Сообщение: RE: Why is this doing a seq scan?