]> granicus.if.org Git - postgresql/commit
Correct volatility markings of a few json functions.
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 20 Oct 2014 18:55:35 +0000 (14:55 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 20 Oct 2014 18:55:35 +0000 (14:55 -0400)
commit6e0a053a963024698de8ba315eed7455520d1a92
tree672e09b190194482e563029134e9edc38a2eca10
parent33343b862ce17ff51699789625684d0cccd60ede
Correct volatility markings of a few json functions.

json_agg and json_object_agg and their associated transition functions
should have been marked as stable rather than immutable, as they call IO
functions indirectly. Changing this probably isn't going to make much
difference, as you can't use an aggregate function in an index
expression, but we should be correct nevertheless.

json_object, on the other hand, should be marked immutable rather than
stable, as it does not call IO functions.

As discussed on -hackers, this change is being made without bumping the
catalog version, as we don't want to do that at this stage of the  cycle,
and  the changes are very unlikely to affect anyone.
src/include/catalog/pg_proc.h