Re: Casts - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Casts
Date
Msg-id 15262.1155219243@sss.pgh.pa.us
Whole thread Raw
In response to Re: Casts  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
Martijn van Oosterhout <kleptog@svana.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


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Casts
Next
From: mark@mark.mielke.cc
Date:
Subject: Re: [BUGS] numerics lose scale and precision in views of unions