pgsql: Correct volatility markings of a few json functions.

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема pgsql: Correct volatility markings of a few json functions.
Дата
Msg-id E1XgIfh-00089T-Sw@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/af2b8fd057213f4b1918b9581c63e0b00427573c

Modified Files
--------------
src/include/catalog/pg_proc.h |   12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Correct volatility markings of a few json functions.
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: pg_test_fsync: Update output format