Re: Why are JSON extraction functions STABLE and not IMMUTABLE?

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: depesz(at)depesz(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Why are JSON extraction functions STABLE and not IMMUTABLE?
Date: 2013-04-15 20:41:53
Message-ID: 516C6611.9090302@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 04/15/2013 11:46 AM, Andres Freund wrote:
>>
>> Me either. It's an oversight, really. Unless there is any objection I'll
>> change them toot sweet. What about the existing (as of 9.2) functions?
> ISTM json_in, out, recv, send should also be immutable. array_to_json,
> row_to_json et all can't be tho.

OK, although these have been like this since 9.2. I'm not sure why
json_out is immutable but json_in isn't.

Does changing these require a catalog version bump?

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rodrigo Barboza 2013-04-15 20:44:42 Re: Query not using index for user defined type
Previous Message Robert Haas 2013-04-15 20:35:02 Re: COPY and Volatile default expressions