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 "Adam Rich" <adam.r@sbcglobal.net>
Re: 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 "Scott Marlowe" <scott.marlowe@gmail.com>
Re: Column Statistics - How to dertermine for whole database Ow Mun Heng <Ow.Mun.Heng@wdc.com>
> 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
Дата:
От: Scott Marlowe
Дата:
Сообщение: Re: postgre vs MySQL
FAQ