Re: [Fwd: Re: Using char fields with 7.1.3 driver]

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jeffdavey(at)submersion(dot)com
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [Fwd: Re: Using char fields with 7.1.3 driver]
Date: 2001-09-07 02:43:47
Message-ID: 20102.999830627@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

<jeffdavey(at)submersion(dot)com> writes:
> Just I usually prefer using fixed field lengths as queries tend to be
> significantly faster. Also, you can use them in indexes.

You are making assumptions based on other databases that are not
relevant to Postgres.

> And it leads me to wonder how you would represent an ending "space" in a
> field,

In varchar or text fields, trailing spaces are real data. In
fixed-width char fields, trailing spaces are pads. AFAIK this is
consistent with the SQL92 specification.

regards, tom lane

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Bruce Momjian 2001-09-07 04:30:24 Re: [HACKERS] JDBC pg_description update needed for CVS tip
Previous Message jeffdavey 2001-09-07 02:37:13 Re: Using char fields with 7.1.3 driver]