X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4B0B1D91B4 for ; Wed, 5 Oct 2005 15:35:00 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 48895-08 for ; Wed, 5 Oct 2005 18:34:51 +0000 (GMT) Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by svr1.postgresql.org (Postfix) with ESMTP id E8F85DA283 for ; Wed, 5 Oct 2005 15:34:47 -0300 (ADT) Received: from trofast.ipv6.sesse.net ([2001:700:300:dc03:20e:cff:fe36:a766] helo=trofast.sesse.net) by cassarossa.samfundet.no with esmtp (Exim 4.50) id 1ENE6E-000460-W7 for pgsql-performance@postgresql.org; Wed, 05 Oct 2005 20:34:44 +0200 Received: from sesse by trofast.sesse.net with local (Exim 3.36 #1 (Debian)) id 1ENE6D-0008Ut-00 for ; Wed, 05 Oct 2005 20:34:41 +0200 Date: Wed, 5 Oct 2005 20:34:41 +0200 From: "Steinar H. Gunderson" To: pgsql-performance@postgresql.org Subject: Re: Text/Varchar performance... Message-ID: <20051005183441.GA32451@uio.no> Mail-Followup-To: pgsql-performance@postgresql.org References: <20051005182803.0E6B0100E5@mail.clickdiario.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20051005182803.0E6B0100E5@mail.clickdiario.com> X-Operating-System: Linux 2.6.11.8 on a i686 X-Message-Flag: Outlook? --> http://www.mozilla.org/products/thunderbird/ User-Agent: Mutt/1.5.10i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.013 required=5 tests=[AWL=0.013] X-Spam-Level: X-Archive-Number: 200510/112 X-Sequence-Number: 14880 On Wed, Oct 05, 2005 at 12:21:35PM -0600, Cristian Prieto wrote: > Hello, just a little question, It's preferable to use Text Fields or > varchar(255) fields in a table? Are there any performance differences in the > use of any of them? They are essentially the same. Note that you can have varchar without length (well, up to about a gigabyte or so after compression), and you can have varchar with a length well above 255 (say, 100000). /* Steinar */ -- Homepage: http://www.sesse.net/