Re: Massive performance issues

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Merlin Moncure <merlin(dot)moncure(at)rcsonline(dot)com>
Cc: Matthew Sackman <matthew(at)lshift(dot)net>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Massive performance issues
Date: 2005-09-01 19:33:31
Message-ID: 20050901193331.GA31313@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thu, Sep 01, 2005 at 02:04:54PM -0400, Merlin Moncure wrote:
> > Table "public.address"
> > Column | Type | Modifiers
> > ----------------------+------------------------+-----------
> > postcode_top | character varying(2) | not null
> > postcode_middle | character varying(4) | not null
> > postcode_bottom | character varying(7) | not null
>
> consider making above fields char(x) not varchar(x) for small but
> important savings.

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.)

--
Alvaro Herrera -- Valdivia, Chile Architect, www.EnterpriseDB.com
You liked Linux a lot when he was just the gawky kid from down the block
mowing your lawn or shoveling the snow. But now that he wants to date
your daughter, you're not so sure he measures up. (Larry Greenemeier)

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Ron 2005-09-01 19:43:01 Re: Massive performance issues
Previous Message Matthew Sackman 2005-09-01 19:08:08 Re: Massive performance issues