Search Postgresql Archives

Re: Regression in 8.3?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hubert depesz lubaczewski <depesz@xxxxxxxxxx> writes:
> on the other hand. while i know and understand why there can't be "="
> operator for text and int, i think that "like" could be readded as it is
> really clear about how it works.

Really?

regression=# select '8.12345678901234567890' ~~ '%67890' ;
 ?column? 
----------
 t
(1 row)

regression=# select '8.12345678901234567890'::numeric ~~ '%67890' ;
 ?column? 
----------
 t
(1 row)

regression=# select '8.12345678901234567890'::float8 ~~ '%67890' ;
 ?column? 
----------
 f
(1 row)

regression=# select '8.12345678901234567890'::char(50) ~~ '%67890' ;
 ?column? 
----------
 f
(1 row)

Yup, the behavior of LIKE before 8.3 was just as datatype-independent
as could be.

			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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux