Re: Casts

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: stark <stark(at)enterprisedb(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Casts
Date: 2006-08-10 14:14:03
Message-ID: 15262.1155219243@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> You're not required to provide all the casts, but it's user friendly to
> do so. Requiring double casts to go between two essentially compatable
> types seems silly...

I believe what Greg had in mind included the idea that the parser would
automatically find two-step cast pathways if there wasn't a direct path.
This scares me though, as it seems like a recipe for surprising behavior.

regards, tom lane

In response to

  • Re: Casts at 2006-08-10 14:03:07 from Martijn van Oosterhout

Browse pgsql-hackers by date

  From Date Subject
Next Message mark 2006-08-10 14:17:39 Re: [BUGS] numerics lose scale and precision in views of unions
Previous Message Martijn van Oosterhout 2006-08-10 14:03:07 Re: Casts