From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Why are json <=> jsonb casts marked as explicit-only? |
Date: | 2015-03-03 00:36:49 |
Message-ID: | 16150.1425343009@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> On 03/02/2015 04:26 PM, Tom Lane wrote:
>> Surely they should be assignment level, if not implicit. I don't
>> really see why I should have to write a cast to assign a json
>> expression result into a jsonb column, in particular.
> Probably an oversight/thinko on the part of everyone involved, me more
> than most. Possibly too an overabundance of caution.
It'd be fair to be cautious about making them implicit; that could
potentially create ambiguous-function-call problems. But I have a hard
time seeing a problem with marking them as OK for assignments.
The reason this came up is I was looking at the set of explicit casts we
have, and those two stood out like a sore thumb in terms of the semantic
similarity of the types involved.
If there are not objections, I'll go change this tomorrow or so.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Kouhei Kaigai | 2015-03-03 01:55:26 | Re: Join push-down support for foreign tables |
Previous Message | Michael Paquier | 2015-03-03 00:34:57 | Re: [REVIEW] Re: Compression of full-page-writes |