Re: varchar or text - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: varchar or text
Date
Msg-id 20080429130113.GB3146@svana.org
Whole thread Raw
In response to Re: varchar or text  (Pascal Cohen <pcohen@wimba.com>)
List pgsql-general
On Tue, Apr 29, 2008 at 09:36:31AM +0200, Pascal Cohen wrote:
> I am with 8.3.1 release but I mentioned that this appears with spaces at
> then end not with standard chars. Of course your examples are working
> fine but insert something like 'abc        ' (with several spaces and it
> will work but just ignore the spaces above the 5th char.

Yeah, the SQL standard has some "interesting" features regarding
char/varchar and trailing spaces. Text doesn't treat spaces specially
at all...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

Attachment

pgsql-general by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: Multibyte (Japanese Character) Sorting
Next
From: Andreas Kretschmer
Date:
Subject: Re: String Comparison and NULL