X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DA717529BA for ; Wed, 6 Jul 2005 17:08:07 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 70229-02 for ; Wed, 6 Jul 2005 20:07:56 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id A6564529B5 for ; Wed, 6 Jul 2005 17:07:54 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j66K7rA7096698 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 6 Jul 2005 14:07:55 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j66K7q1p067069; Wed, 6 Jul 2005 14:07:52 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j66K7qg1067060; Wed, 6 Jul 2005 14:07:52 -0600 (MDT) (envelope-from mfuhr) Date: Wed, 6 Jul 2005 14:07:52 -0600 From: Michael Fuhr To: Dario Cc: pgsql-performance@postgresql.org Subject: Re: ALTER TABLE tabla ALTER COLUMN columna SET STATISTICS number Message-ID: <20050706200752.GA33295@winnie.fuhr.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.109 tagged_above=0 required=5 tests=AWL, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200507/51 X-Sequence-Number: 13292 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/