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_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/6099030d8ca29ef0a4f7502038fc3c8d88045557 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(-)