pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: John Moore <postgres@tinyvital.com>
Cc: Postgresql Admin <pgsql-admin@postgresql.org>
Subject: Re: Performance impact of record sizes
Date: Thu, 4 Jul 2002 20:02:01 -0400 (EDT)
Message-ID: <200207050002.g65021Q06455@candle.pha.pa.us> (raw)
In-Reply-To: <6353.1025826585@sss.pgh.pa.us>

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





view thread (13+ messages)  latest in thread

Message-ID: <200207050002.g65021Q06455@candle.pha.pa.us>
Permalink:  ../200207050002.g65021Q06455@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200207050002.g65021Q06455@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us, postgres@tinyvital.com
  Subject: Re: Performance impact of record sizes
  In-Reply-To: <200207050002.g65021Q06455@candle.pha.pa.us>
  References: <6353.1025826585@sss.pgh.pa.us> <200207050002.g65021Q06455@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox