pgsql: Don't create a shell type for a function returning SETOF

Поиск
Список
Период
Сортировка
Искать

pgsql: Don't create a shell type for a function returning SETOF

От:
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Дата:
Don't create a shell type for a function returning SETOF

Commit 2866d8c7db tightened the rules for when CREATE FUNCTION creates
a shell type. Tighten some more, to not create a shell type for
functions returning SETOF either, for similar reasons. Backpatch to
all supported versions, like commit 2866d8c7db (v14 is no longer
supported however).

Author: Ewan Young 
Discussion: https://www.postgresql.org/message-id/CAON2xHN8y=9KeFnEb4KAKPvVks5VQaMUFJSGTv3T9VY777EKRw@mail.gmail.com
Backpatch-through: 15

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2d0801acd8b37ac131983b68822f4e463966a880

Modified Files
--------------
src/backend/commands/functioncmds.c       | 3 ++-
src/test/regress/expected/create_type.out | 6 ++++++
src/test/regress/sql/create_type.sql      | 6 ++++++
3 files changed, 14 insertions(+), 1 deletion(-)

FAQ