Re: Column Statistics - How to dertermine for whole database - Mailing list pgsql-general

From Adam Rich
Subject Re: Column Statistics - How to dertermine for whole database
Date
Msg-id 031701c884b2$b15ff480$141fdd80$@r@sbcglobal.net
Whole thread Raw
In response to Column Statistics - How to dertermine for whole database  (Ow Mun Heng <Ow.Mun.Heng@wdc.com>)
Responses Re: Column Statistics - How to dertermine for whole database  (Ow Mun Heng <Ow.Mun.Heng@wdc.com>)
List 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 by date:

Previous
From: Craig Ringer
Date:
Subject: Re: porting vb6 code to pgplsql, referencing fields
Next
From: "Scott Marlowe"
Date:
Subject: Re: postgre vs MySQL