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