Re: A modest proposal for a FAQ addition

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: A modest proposal for a FAQ addition
Date: 2003-01-12 05:17:13
Message-ID: 200301120517.h0C5HDN04339@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Q: Why do I get strange results with a CHAR(n) field?
>
> A. Don't use CHAR(n). VARCHAR(n) has the behavior you are probably
> expecting; on top of which it's more compact and usually faster.
>
>
> I suppose the above needs some fleshing out, but man am I getting tired
> of explaining about significant vs non-significant trailing blanks.

OK, good point. I was mentioning CHAR() in the FAQ entry first, while
it should have been mentioned later. I also added a specific mention of
the trailing spaces issue. Patch attached.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 1.6 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ian Barwick 2003-01-12 11:06:09 Re: A modest proposal for a FAQ addition
Previous Message Tom Lane 2003-01-12 04:59:47 A modest proposal for a FAQ addition