Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group