Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 7052B474E44 for ; Fri, 1 Nov 2002 16:10:57 -0500 (EST) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by postgresql.org (Postfix) with ESMTP id CF4BE474E53 for ; Fri, 1 Nov 2002 16:10:55 -0500 (EST) Received: from andrew by mail.libertyrms.com with local (Exim 3.22 #3 (Debian)) id 187j4D-0004oY-00 for ; Fri, 01 Nov 2002 16:10:57 -0500 Date: Fri, 1 Nov 2002 16:10:57 -0500 From: Andrew Sullivan To: pgsql-performance@postgresql.org Subject: Re: Does this matter? Message-ID: <20021101161057.V5799@mail.libertyrms.com> Mail-Followup-To: Andrew Sullivan , pgsql-performance@postgresql.org References: <200211011223.48962.josh@agliodbs.com> <20021101125052.Y6303-100000@cypress.adhesivemedia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021101125052.Y6303-100000@cypress.adhesivemedia.com>; from philip@adhesivemedia.com on Fri, Nov 01, 2002 at 12:53:29PM -0800 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/14 X-Sequence-Number: 172 On Fri, Nov 01, 2002 at 12:53:29PM -0800, Philip Hallstrom wrote: > > is padded out to the specified length. Therefore the index on a char(36) > > column will be a little larger, and thus a little slower, than the char(20). > > > > Really? According to this url (search for "Tip") there is no performance > difference just a space difference. I don't know for sure either way, but > if there is a difference the manual needs updating. Hmm. Maybe a clarification, but I don't think this is quite what the tip is talking about. The tip points out that part of the cost is "the increased storage" from the blank-padded type (char) as contrasted with non-padded types (like text). The tip isn't talking about whether a length of 20 is faster than a length of 36. Anyway, I can't really believe the length would be a big deal except on really huge tables. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110