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 <[email protected]> Discussion: https://www.postgresql.org/message-id/CAON2xHN8y=9kefneb4kakpvvks5vqamufjsgtv3t9vy777e...@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(-)
