Re: character and text comparison - Mailing list pgsql-bugs

From Tom Lane
Subject Re: character and text comparison
Date
Msg-id 4720.1095266591@sss.pgh.pa.us
Whole thread Raw
In response to character and text comparison  (Jacek Rembisz <jr178783@zodiac.mimuw.edu.pl>)
Responses Re: character and text comparison  (Jacek Rembisz <jr178783@zodiac.mimuw.edu.pl>)
List pgsql-bugs
Jacek Rembisz <jr178783@zodiac.mimuw.edu.pl> writes:
> When I run  SELECT ' '::character = ' '::text;
> on PostgreSQL 7.4 the result is `false'
> while on 7.3 and 7.2 instalations result is `true'

> Is this an intentional change?

Yes.

We now strip trailing blanks when converting a char(n) value to text.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Bender, Cheryl"
Date:
Subject: Re: Windows 8.0 beta on Server 2003 Installer problem
Next
From: Bruno Wolff III
Date:
Subject: Re: BUG #1252: Optimization of SELECT for NOT NULL case