Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id EE3BE475BA0 for ; Thu, 4 Jul 2002 20:02:16 -0400 (EDT) Mailbox-Line: From pgman@candle.pha.pa.us Thu Jul 4 20:02:16 2002 Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id D0D674759A4 for ; Thu, 4 Jul 2002 20:02:05 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g65021Q06455; Thu, 4 Jul 2002 20:02:01 -0400 (EDT) From: Bruce Momjian Message-Id: <200207050002.g65021Q06455@candle.pha.pa.us> Subject: Re: Performance impact of record sizes In-Reply-To: <6353.1025826585@sss.pgh.pa.us> To: Tom Lane Date: Thu, 4 Jul 2002 20:02:01 -0400 (EDT) Cc: John Moore , Postgresql Admin X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, hits=-3.4 required=5.0 tests=IN_REP_TO version=2.30 X-Spam-Level: X-Archive-Number: 200207/72 X-Sequence-Number: 4758 Tom Lane wrote: > There is no savings from using CHAR(n) --- most of the time it's a > substantial loss, because of the extra I/O costs associated with the > space used by all those padding blanks. I can think of very very few > applications where CHAR(n) is really a sensible choice over VARCHAR(n). > US state postal codes (CHAR(2)) are an example, but beyond that the > valid use cases are mighty thin on the ground. > > Bruce, it occurs to me that the "Performance Tips" section of the user's > guide ought to have an explanation of the performance implications of > TOAST. We have some material in the FAQ but there's precious little > mention in the manual. Thoughts? Yes, I am working on my O'Reilly slides now and am dealing with how to address TOAST for admins, specifically for disk space computations, which I did cover in the new 'disk usage' section of the manual. And in talking to the questioner, I was wondering if we have this auto-out-of-line TOAST description anywhere in the docs. If not, we need to add that. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026