Re: Data Types

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Roberts, Jon" <Jon(dot)Roberts(at)asurion(dot)com>
Cc: mgould(at)allcoast(dot)net, "pgsql-general General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Data Types
Date: 2008-06-23 19:00:05
Message-ID: 29459.1214247605@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Roberts, Jon" <Jon(dot)Roberts(at)asurion(dot)com> writes:
> Character will use more disk space than varchar so it does make a
> difference.

char also has very peculiar comparison semantics. Unless your strings
are really truly fixed-length, you should just about always use varchar.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mark Roberts 2008-06-23 19:14:14 Re: limits?
Previous Message Greg Smith 2008-06-23 18:51:39 Re: dbsize command