X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 859D0D1D27C for ; Fri, 13 Feb 2004 00:26:00 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 70577-07 for ; Thu, 12 Feb 2004 20:25:54 -0400 (AST) Received: from web60808.mail.yahoo.com (web60808.mail.yahoo.com [216.155.196.71]) by svr1.postgresql.org (Postfix) with SMTP id 42132D1B897 for ; Thu, 12 Feb 2004 20:25:50 -0400 (AST) Message-ID: <20040213002548.19523.qmail@web60808.mail.yahoo.com> Received: from [64.81.205.234] by web60808.mail.yahoo.com via HTTP; Thu, 12 Feb 2004 16:25:48 PST Date: Thu, 12 Feb 2004 16:25:48 -0800 (PST) From: ow Subject: Re: 7.4 - FK constraint performance To: Tom Lane Cc: pgsql-sql@postgresql.org In-Reply-To: <24947.1076630425@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/121 X-Sequence-Number: 16812 --- Tom Lane wrote: > Well, there's the smoking gun all right. Why does it think there are > going to be 7893843 matching rows!? Could we see the pg_stats row for > the large.small_id column? > > regards, tom lane schemaname tablename attname null_frac avg_width n_distinct most_common_vals most_common_freqs histogram_bounds correlation my large small_id 0 4 10 {7,3,5,1,4,2,8,10,6,9} {0.108667,0.105,0.104333,0.101333,0.100667,0.0983333,0.0983333,0.0983333,0.094,0.091} 0.0597573 __________________________________ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html