Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CA177476C9D for ; Fri, 18 Oct 2002 23:13:22 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id EF1EC476C99 for ; Fri, 18 Oct 2002 23:13:21 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g9J3DKhR015122; Fri, 18 Oct 2002 23:13:20 -0400 (EDT) To: Ray Ontko Cc: pgsql-admin@postgresql.org Subject: Re: Are statistics gathered on function indexes? In-reply-to: <9676.1025298333@sss.pgh.pa.us> References: <200206282042.PAA07634@shire.ontko.com> <9555.1025297447@sss.pgh.pa.us> <9676.1025298333@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 28 Jun 2002 17:05:33 -0400" Date: Fri, 18 Oct 2002 23:13:20 -0400 Message-ID: <15121.1034997200@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/154 X-Sequence-Number: 6012 Awhile back I said: > Oh, I see it: range selectivity double-excludes NULLs. See the comment > for clauselist_selectivity in src/backend/optimizer/path/clausesel.c. > The individual estimates for the two component comparison operators > each exclude nulls, and when we merge them together we get the wrong > answer. Just FYI, I have fixed this for 7.3. regards, tom lane