X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id A1BF1D1B8C2 for ; Tue, 23 Sep 2003 20:07:43 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 41254-05 for ; Tue, 23 Sep 2003 17:07:34 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id A6630D1B522 for ; Tue, 23 Sep 2003 17:07:32 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h8NK7XiP022044; Tue, 23 Sep 2003 16:07:33 -0400 (EDT) To: nickf@ontko.com Cc: "pgsql-admin" Subject: Re: Problem with n_distinct being consistently inaccurate. In-reply-to: References: Comments: In-reply-to "Nick Fankhauser" message dated "Tue, 23 Sep 2003 15:03:57 -0500" Date: Tue, 23 Sep 2003 16:07:33 -0400 Message-ID: <22043.1064347653@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/363 X-Sequence-Number: 10451 "Nick Fankhauser" writes: > when I do a \d on pg_stats, it appears that pg_statistic.starelid matches up > with pg_class.oid, but apparently this is not the case. It certainly should be the case. starelid matches to pg_class.oid and staattnum matches to pg_attribute.attnum. regards, tom lane