Re: 'a' == 'a ' (Was: RE: [pgsql-advocacy] [GENERAL] - Mailing list pgsql-hackers

From Tino Wildenhain
Subject Re: 'a' == 'a ' (Was: RE: [pgsql-advocacy] [GENERAL]
Date
Msg-id 1129789076.18052.134.camel@Andrea.peacock.de
Whole thread Raw
In response to Re: 'a' == 'a ' (Was: RE: [pgsql-advocacy] [GENERAL] Oracle buys  (Tino Wildenhain <tino@wildenhain.de>)
List pgsql-hackers
Am Mittwoch, den 19.10.2005, 22:04 +0200 schrieb Tino Wildenhain:
> Am Mittwoch, den 19.10.2005, 16:29 -0300 schrieb Marc G. Fournier:
> > I'm CC'ng this over to -hackers ... Tom?  Comments?
> >
> ...

> > >> Then we are broken too :)
> > >>
> > >> # select 'a ' = 'a  ';
> > >>   ?column?
> > >> ----------
> > >>   f
> > >> (1 row)
>
>
> experiment=# SELECT 'a '::char = 'a  '::char;
>  ?column?
> ----------
>  t
>
Sorry, copied wrong line :)

experiment=# SELECT 'a '::char(10) = 'a  '::char(10);
 ?column?
----------
 t

and:

SELECT '|' || 'foo  '::char(10) || '|';
 ?column?
----------
 |foo|


vs.


SELECT '|' || 'foo  ' || '|';
 ?column?
----------
 |foo  |




pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: [GENERAL] 'a' == 'a '
Next
From: "Varun Shingal"
Date:
Subject: changing create table