Re: varchar or text

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Pascal Cohen <pcohen(at)wimba(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: varchar or text
Date: 2008-04-29 13:01:13
Message-ID: 20080429130113.GB3146@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)org> http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2008-04-29 13:05:57 Re: Sorting nulls and empty strings together
Previous Message Andreas Kretschmer 2008-04-29 12:44:07 Re: String Comparison and NULL