Re: Column Statistics - How to dertermine for whole database

Поиск
Список
Период
Сортировка
От Adam Rich
Тема Re: Column Statistics - How to dertermine for whole database
Дата
Msg-id 031701c884b2$b15ff480$141fdd80$@r@sbcglobal.net
обсуждение исходный текст
Ответ на Column Statistics - How to dertermine for whole database  (Ow Mun Heng <Ow.Mun.Heng@wdc.com>)
Ответы Re: Column Statistics - How to dertermine for whole database
Список pgsql-general
> Is there a query to pg_catalog tables to find out which table/column
> has
> the stat level not at default in 1 sweep?

Try this:

select c.relname, a.attname, attstattarget
from pg_catalog.pg_attribute a, pg_catalog.pg_class c,
pg_catalog.pg_namespace n
where a.attrelid = c.oid and c.relnamespace=n.oid
and n.nspname = 'public' and a.attnum > 0

The value "-1" means to use the default (set in postgreql.conf)






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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: porting vb6 code to pgplsql, referencing fields
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: postgre vs MySQL