X-Original-To: pgsql-performance@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8EC4F476321 for ; Mon, 12 May 2003 18:47:02 -0400 (EDT) Received: from davinci.ethosmedia.com (unknown [209.10.40.251]) by postgresql.org (Postfix) with ESMTP id EDF634762F6 for ; Mon, 12 May 2003 18:47:01 -0400 (EDT) Received: from [216.135.165.74] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3028842; Mon, 12 May 2003 15:47:06 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: "Ryan" Subject: Re: How are null's stored? Date: Mon, 12 May 2003 15:46:39 -0700 User-Agent: KMail/1.4.3 Cc: References: <20030512190156.GA40542@flake.decibel.org> <200305121344.43288.josh@agliodbs.com> <10995.65.102.128.233.1052765883.squirrel@fordparts.com> In-Reply-To: <10995.65.102.128.233.1052765883.squirrel@fordparts.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200305121546.39544.josh@agliodbs.com> X-Spam-Status: No, hits=-32.4 required=5.0 tests=BAYES_01,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_KMAIL autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/133 X-Sequence-Number: 1912 Ryan, > So if the internal format is identical, why does the INFERNAL database > ignore indexes when you have a text compared to a varchar? I don't seem to have this problem; I use TEXT or VARCHAR willy-nilly,=20 including in LIKE 'string%' and UPPER(field) queries, and the indexes work= =20 fine. I suspect that either you're talking about TEXT to CHAR(x) comparisons, whi= ch=20 are a different ball o' wax, or your query problem is something else. --=20 -Josh Berkus Aglio Database Solutions San Francisco