From dave@tridecap.com Wed Jan 11 22:05:21 2006 X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 3CD949DC898 for ; Wed, 11 Jan 2006 18:05:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 97772-10 for ; Wed, 11 Jan 2006 18:05:22 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from globalrelay.com (mail1.globalrelay.com [216.18.71.77]) by postgresql.org (Postfix) with ESMTP id 884A19DC863 for ; Wed, 11 Jan 2006 18:05:17 -0400 (AST) X-Virus-Scanned: Scanned by GRC-AntiVirus Gateway X-GR-Acctd: YES Received: from [63.226.156.118] (HELO DaveEMachine) by globalrelay.com (CommuniGate Pro SMTP 4.2.3) with ESMTP id 81167295 for pgsql-performance@postgresql.org; Wed, 11 Jan 2006 14:05:19 -0800 From: "Dave Dutcher" To: Subject: Showing Column Statistics Number Date: Wed, 11 Jan 2006 16:05:18 -0600 Message-ID: <020101c616fb$1c4f9de0$8300a8c0@tridecap.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0202_01C616C8.D1B52DE0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.001 required=5 tests=[HTML_MESSAGE=0.001] X-Spam-Score: 0.001 X-Spam-Level: X-Archive-Number: 200601/128 X-Sequence-Number: 16606 This is a multi-part message in MIME format. ------=_NextPart_000_0202_01C616C8.D1B52DE0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hi, I've looked around through the docs, but can't seem to find an answer to this. If I change a column's statistics with "Alter table alter column set statistics n", is there a way I can later go back and see what the number is for that column? I want to be able to tell which columns I've changed the statistics on, and which ones I haven't. Thanks, Dave ------=_NextPart_000_0202_01C616C8.D1B52DE0 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hi,

 

I’ve looked around through the docs, but = can’t seem to find an answer to this.  = If I change a column’s statistics with “Alter table alter = column set statistics n”, is there a way I can later go back and see what the = number is for that column?  I want = to be able to tell which columns I’ve changed the statistics on, and = which ones I haven’t.

 

Thanks,

 

Dave

------=_NextPart_000_0202_01C616C8.D1B52DE0-- From mike@fuhr.org Wed Jan 11 22:21:43 2006 X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id DA3EF9DCA26 for ; Wed, 11 Jan 2006 18:21:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 02648-04 for ; Wed, 11 Jan 2006 18:21:45 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id ACAE69DCA25 for ; Wed, 11 Jan 2006 18:21:40 -0400 (AST) 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 k0BMLdww008935 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 11 Jan 2006 15:21:41 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.4/8.13.4) with ESMTP id k0BMLd3U088391; Wed, 11 Jan 2006 15:21:39 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.4/8.13.4/Submit) id k0BMLcEF088390; Wed, 11 Jan 2006 15:21:38 -0700 (MST) (envelope-from mfuhr) Date: Wed, 11 Jan 2006 15:21:38 -0700 From: Michael Fuhr To: Dave Dutcher Cc: pgsql-performance@postgresql.org Subject: Re: Showing Column Statistics Number Message-ID: <20060111222138.GA88301@winnie.fuhr.org> References: <020101c616fb$1c4f9de0$8300a8c0@tridecap.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <020101c616fb$1c4f9de0$8300a8c0@tridecap.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.089 required=5 tests=[AWL=0.089] X-Spam-Score: 0.089 X-Spam-Level: X-Archive-Number: 200601/129 X-Sequence-Number: 16607 On Wed, Jan 11, 2006 at 04:05:18PM -0600, Dave Dutcher wrote: > I've looked around through the docs, but can't seem to find an answer to > this. If I change a column's statistics with "Alter table alter column > set statistics n", is there a way I can later go back and see what the > number is for that column? I want to be able to tell which columns I've > changed the statistics on, and which ones I haven't. pg_attribute.attstattarget http://www.postgresql.org/docs/8.1/interactive/catalog-pg-attribute.html -- Michael Fuhr