pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ALTER TABLE tabla ALTER COLUMN columna SET STATISTICS number
2+ messages / 2 participants
[nested] [flat]

* ALTER TABLE tabla ALTER COLUMN columna SET STATISTICS number
@ 2005-07-06 19:49  Dario <dario_d_s@unitech.com.ar>
  0 siblings, 1 reply; 2+ messages in thread

From: Dario @ 2005-07-06 19:49 UTC (permalink / raw)
  To: pgsql-performance

¿where is stored the value set by ALTER TABLE table_name ALTER COLUMN
column_name SET STATISTICS = [1-1000]?
I've set this to 1000, and I didn't remember in which column (doh!). Is
there any table to look? (I did 'grep "set stat" $PGDATA/pg_log/*' and found
it, but may be there is a better way)

I couldn't find it in the docs neithr "googling"


Greetings
--------------------------------------
Long life, little spam and prosperity




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: ALTER TABLE tabla ALTER COLUMN columna SET STATISTICS number
@ 2005-07-06 20:07  Michael Fuhr <mike@fuhr.org>
  parent: Dario <dario_d_s@unitech.com.ar>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Fuhr @ 2005-07-06 20:07 UTC (permalink / raw)
  To: Dario <dario_d_s@unitech.com.ar>; +Cc: pgsql-performance

On Wed, Jul 06, 2005 at 04:49:21PM -0300, Dario wrote:
> where is stored the value set by ALTER TABLE table_name ALTER COLUMN
> column_name SET STATISTICS = [1-1000]?

pg_attribute.attstattarget

Example query:

SELECT attrelid::regclass, attname, attstattarget
FROM pg_attribute
WHERE attstattarget > 0;

See the "System Catalogs" chapter in the documentation for more
information.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-07-06 20:07 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-07-06 19:49 ALTER TABLE tabla ALTER COLUMN columna SET STATISTICS number Dario <dario_d_s@unitech.com.ar>
2005-07-06 20:07 ` Michael Fuhr <mike@fuhr.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox