Re: Speeding up schema changes

From: Decibel! <decibel(at)decibel(dot)org>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: "Stefan Arentz" <stefan(dot)arentz(at)gmail(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Speeding up schema changes
Date: 2007-09-19 15:04:50
Message-ID: FC6AC0ED-3C3B-41F4-A6DA-75C1F0B34042@decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Sep 3, 2007, at 7:26 AM, Gregory Stark wrote:
> Also, incidentally do you have a good reason to use CHAR instead of
> varchar or
> text? char(64) will take 64 bytes (actually 68 bytes in 8.2) even
> if you don't
> store anything more in it. text or varchar will take only as many
> bytes as the
> data you're storing (plus 4 bytes).

Hrm, do we actually pad before storing? ISTM we should really do that
the other way around...
--
Decibel!, aka Jim C. Nasby, Database Architect decibel(at)decibel(dot)org
Give your computer some brain candy! www.distributed.net Team #1828

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Gregory Stark 2007-09-19 17:43:57 Re: Speeding up schema changes
Previous Message Nis Jørgensen 2007-09-19 08:13:08 Re: Table transform query