Re: operator varchar = integer

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Fetter <david(at)fetter(dot)org>
Cc: Daniel Schuchardt <daniel_schuchardt(at)web(dot)de>, PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: operator varchar = integer
Date: 2008-05-05 17:36:01
Message-ID: 1203.1210008961@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David Fetter <david(at)fetter(dot)org> writes:
> On Mon, May 05, 2008 at 05:26:40PM +0200, Daniel Schuchardt wrote:
>> our db has about 500 functions, 300 tables, 1000 indexes, 1200 Views
>> that all use implicit casting. and: everything is working fine ;-)
>> :-P

> How do you know? 8.3 removed the implicit casts precisely because
> they were producing results that could most generously be describe as
> "surprising."

This should not be underestimated. From the reports we've seen so far,
a very sizable fraction of people who find this kind of failure with 8.3
find out that their application was doing something unexpected in the
cases where it happened. If you've got as many failures as you suggest,
I'd be willing to bet that some of them are bugs in your code, not just
reliance on an implicit feature.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message postgre 2008-05-05 17:38:18 Re: [GENERAL] close database, nomount state
Previous Message Leandro Casadei 2008-05-05 17:08:55 Extract only numbers from a varchar column