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 098A2D76D5 for ; Thu, 1 Sep 2005 16:53:18 -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 01821-10 for ; Thu, 1 Sep 2005 19:53:15 +0000 (GMT) Received: from mx1.surnet.cl (mx1.surnet.cl [216.155.73.180]) by svr1.postgresql.org (Postfix) with ESMTP id 4D06DD868E for ; Thu, 1 Sep 2005 16:53:13 -0300 (ADT) Received: from unknown (HELO cluster.surnet.cl) (216.155.73.164) by mx1.surnet.cl with ESMTP; 01 Sep 2005 15:53:14 -0400 X-IronPort-AV: i="3.96,162,1122868800"; d="scan'208"; a="3347051:sNHT175076136" Received: from alvh.no-ip.org (216.155.78.140) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 42B3EF6000ACCE81; Thu, 1 Sep 2005 15:53:14 -0400 Received: by alvh.no-ip.org (Postfix, from userid 1000) id C7267C30B1B; Thu, 1 Sep 2005 15:53:47 -0400 (CLT) Date: Thu, 1 Sep 2005 15:53:47 -0400 From: Alvaro Herrera To: Merlin Moncure Cc: pgsql-performance@postgresql.org Subject: Re: Massive performance issues Message-ID: <20050901195347.GA31519@surnet.cl> Mail-Followup-To: Merlin Moncure , pgsql-performance@postgresql.org References: <6EE64EF3AB31D5448D0007DD34EEB3417DD25F@Herge.rcsinc.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6EE64EF3AB31D5448D0007DD34EEB3417DD25F@Herge.rcsinc.local> User-Agent: Mutt/1.5.10i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.26 required=5 tests=[AWL=-0.516, DNS_FROM_RFC_ABUSE=0.374, DNS_FROM_RFC_POST=1.376, RCVD_IN_NJABL_PROXY=1.026] X-Spam-Level: ** X-Archive-Number: 200509/16 X-Sequence-Number: 14324 On Thu, Sep 01, 2005 at 03:51:35PM -0400, Merlin Moncure wrote: > > Huh, hang on -- AFAIK there's no saving at all by doing that. Quite > > the opposite really, because with char(x) you store the padding > > blanks, which are omitted with varchar(x), so less I/O (not > > necessarily a measurable amount, mind you, maybe even zero because > > of padding issues.) > > You are right, all this time I thought there was a 4 byte penalty for > storing varchar type and not in char :(. So there is no reason at all > to use the char type? Other than SQL conformance, apparently not. -- Alvaro Herrera -- Valdivia, Chile Architect, www.EnterpriseDB.com Bob [Floyd] used to say that he was planning to get a Ph.D. by the "green stamp method," namely by saving envelopes addressed to him as 'Dr. Floyd'. After collecting 500 such letters, he mused, a university somewhere in Arizona would probably grant him a degree. (Don Knuth)