Re: Allowing implicit 'text' -> xml|json|jsonb - Mailing list pgsql-hackers

From Marko Tiikkaja
Subject Re: Allowing implicit 'text' -> xml|json|jsonb
Date
Msg-id 54098052.1090306@joh.to
Whole thread Raw
In response to Re: Allowing implicit 'text' -> xml|json|jsonb  (Craig Ringer <craig@2ndquadrant.com>)
List pgsql-hackers
On 9/5/14 11:08 AM, Craig Ringer wrote:
> On 09/05/2014 05:04 PM, Marko Tiikkaja wrote:
>>
>> I really don't like the idea of relaxing casts.  And I really object to
>> the notion of casting from test to date being "obviously right".
>
> Gah. It's obviously right to *reject* implicit conversions like
> text->date. I specifically do _not_ want to add such a conversion, and
> gave a list of types for which I think conversions from text are
> appropriate.

Oh, *strict casting* is obviously right.  My apologies, I completely 
misparsed that.


.marko



pgsql-hackers by date:

Previous
From: Joachim Wieland
Date:
Subject: Re: pg_dump refactor patch to remove global variables
Next
From: Pavel Stehule
Date:
Subject: Re: proposal: plpgsql - Assert statement