Unix Technical Forum

Re: Massive performance issues

This is a discussion on Re: Massive performance issues within the Pgsql Performance forums, part of the PostgreSQL category; --> > -----Original Message----- > From: Alvaro Herrera [mailto:alvherre@alvh.no-ip.org] > Sent: Thursday, September 01, 2005 3:34 PM > To: Merlin ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 12:21 PM
Merlin Moncure
 
Posts: n/a
Default Re: Massive performance issues

> -----Original Message-----
> From: Alvaro Herrera [mailto:alvherre@alvh.no-ip.org]
> Sent: Thursday, September 01, 2005 3:34 PM
> To: Merlin Moncure
> Cc: Matthew Sackman; pgsql-performance@postgresql.org
> Subject: Re: [PERFORM] Massive performance issues
>
> 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.)

You are right, all this time I thought there was a 4 byte penalty for
storing varchar type and not in char . So there is no reason at all
to use the char type?

Merlin


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:13 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com