Re: no implicit cast error in 9.2? - Mailing list pgsql-general

From Tom Lane
Subject Re: no implicit cast error in 9.2?
Date
Msg-id 26239.1360367527@sss.pgh.pa.us
Whole thread Raw
In response to no implicit cast error in 9.2?  (AI Rumman <rummandba@gmail.com>)
List pgsql-general
AI Rumman <rummandba@gmail.com> writes:
> I got a bit confused after installing this version. So far I used to know
> that from Postgresql 8.3 implicit casting has been removed and the
> following should not work at 8.3 :
> create table testtab ( id varchar, id1 int)
> insert into testtab values (1,1);

No, that will work fine in any version, because you're calling upon an
assignment cast not an implicit cast.  What once worked and no longer
does is cases like

SELECT length(1);

where the integer argument used to be implicitly cast to text.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: var/log/postgresql deletion mystery Ubuntu 12.10
Next
From: Tom Lane
Date:
Subject: Re: Swapping volumes under tablespaces: supported?