pgsql: Only allow returning string types or bytea from json_serialize

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема pgsql: Only allow returning string types or bytea from json_serialize
Дата
Msg-id E1o9ZK7-001hML-4h@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Only allow returning string types or bytea from json_serialize  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Список pgsql-committers
Only allow returning string types or bytea from json_serialize

These are documented to be the allowed types for the RETURNING clause,
but the restriction was not being enforced, which caused a segfault if
another type was specified. Add some testing for this.

Per report from a.kozhemyakin

Backpatch to release 15.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3c633f32b9c712cc0b4c8d946f0eeae04a3ff51a

Modified Files
--------------
src/backend/parser/parse_expr.c       | 17 +++++++++++++++++
src/test/regress/expected/sqljson.out | 10 ++++++++++
src/test/regress/sql/sqljson.sql      |  5 +++++
3 files changed, 32 insertions(+)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Remove stray references to lefttree/righttree in the executor.
Следующее
От: Thomas Munro
Дата:
Сообщение: pgsql: Remove HP/Intel Itanium support.