Re: PGADMIN default storage EXTENDED for Character fields

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: MargaretGillon(at)chromalloy(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PGADMIN default storage EXTENDED for Character fields
Date: 2004-07-10 03:28:58
Message-ID: 2269.1089430138@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

MargaretGillon(at)chromalloy(dot)com writes:
> I am using PGADMIN III v1.1.0 Windows to set up PostgreSQL tables on a
> Linux Server, RedHat 9. Every time I create a character field, even just
> one character wide, the PGADMIN uses EXTENDED as the default storage type.
> Is this normal?

Yes, this is the standard behavior.

> It seems to me it will be very messy if every character field is in a
> secondary table. I would have thought the EXTENDED would only be for
> very large character fields.

No, you are misunderstanding. EXTENDED storage *allows* Postgres to
move large field values out to a secondary table. If a particular entry
is not large, then it won't be moved out.

Choosing one of the other storage options restricts Postgres from moving
data out, which can make things faster but also exposes you to a risk of
"row too large" errors. So I'd not recommend doing it unless you are
quite sure you know what you're doing and what your data will look like.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2004-07-10 03:33:18 Re: Accidentally deleted records - PostgreSQL 7.2
Previous Message Alvaro Herrera 2004-07-10 03:28:04 Re: win32 port