Re: [GENERAL] 'a' == 'a ' - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [GENERAL] 'a' == 'a '
Date
Msg-id 200510241800.j9OI0ei28837@candle.pha.pa.us
Whole thread Raw
In response to Re: [GENERAL] 'a' == 'a '  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Is there any TODO here?

---------------------------------------------------------------------------

Tom Lane wrote:
> "Dann Corbit" <DCorbit@connx.com> writes:
> > I guess that additional ambiguity arises if you add additional spaces to
> > the end.  Many database systems solve this by trimming the characters
> > from the end of the string upon storage and the returned string will not
> > have any trailing blanks.
> 
> Can you document that?  ISTM that that would effectively make char(n)
> and varchar(n) exactly equivalent, which is ... um ... a bit stupid.
> 
>             regards, tom lane
> 
> ---------------------------(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
> 

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


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Seeing context switch storm with 10/13 snapshot of
Next
From: Paresh Bafna
Date:
Subject: Creating table in different database