Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 508489FA1BF for ; Tue, 24 Jul 2007 11:24:23 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 60482-01-4 for ; Tue, 24 Jul 2007 11:24:17 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from coe.tamu.edu (edsun.coe.tamu.edu [165.91.232.6]) by postgresql.org (Postfix) with ESMTP id DAF9E9FB917 for ; Tue, 24 Jul 2007 11:24:16 -0300 (ADT) Received: (from root@localhost) by coe.tamu.edu (8.11.7p3+Sun/8.12.11) id l6OENa809509 for pgsql-admin@postgresql.org; Tue, 24 Jul 2007 09:23:36 -0500 (CDT) Received: from coe.tamu.edu (coe.tamu.edu [165.91.232.6]) by coe.tamu.edu (8.11.7p3+Sun/8.12.11) with ESMTP id l6OEKct09403; Tue, 24 Jul 2007 09:20:38 -0500 (CDT) Date: Tue, 24 Jul 2007 09:20:38 -0500 (CDT) From: Ben Kim To: Peter Koczan cc: Jessica Richard , pgsql-admin@postgresql.org Subject: Re: "_" in a serach pattern In-Reply-To: <46A54962.30109@gmail.com> Message-ID: References: <829317.804.qm@web56414.mail.re3.yahoo.com> <46A54962.30109@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS 0.3.12 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/261 X-Sequence-Number: 26242 > The only difference is that varchar can have a length limit, text is always > unlimited length. There's no significant performance difference between > either. For most intents and purposes, they're equal. Forgive me for diversion, but out of curiosity, would it make some difference whether strings of known length are compared or strings of unknown length are compared, like in join condition "using(address)"? Or, is the actual length stored in a separate field and read first so strings of different lengths wouldn't even need to be matched? Is there some reference on this subject other than the source code? Thanks. Ben K. Developer http://benix.tamu.edu