pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Dario <dario_d_s@unitech.com.ar>
Cc: pgsql-performance@postgresql.org
Subject: Re: ALTER TABLE tabla ALTER COLUMN columna SET STATISTICS number
Date: Wed, 6 Jul 2005 14:07:52 -0600
Message-ID: <20050706200752.GA33295@winnie.fuhr.org> (raw)
In-Reply-To: <MHEDJHCKDNOEHJKHIOCJKEFHCEAA.dario_d_s@unitech.com.ar>
References: <MHEDJHCKDNOEHJKHIOCJKEFHCEAA.dario_d_s@unitech.com.ar>

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/



view thread (2+ messages)

Message-ID: <20050706200752.GA33295@winnie.fuhr.org>
Permalink:  ../20050706200752.GA33295@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050706200752.GA33295@winnie.fuhr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: mike@fuhr.org, dario_d_s@unitech.com.ar
  Subject: Re: ALTER TABLE tabla ALTER COLUMN columna SET STATISTICS number
  In-Reply-To: <20050706200752.GA33295@winnie.fuhr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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