pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't create a shell type for a function returning SETOF
Date: Wed, 18 Nov 2026 15:14:36 +0000
Message-ID: <E1xThMp-00000000Fm3-07OG@gemulon.postgresql.org> (raw)

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 <kdbase.hack@gmail.com>
Discussion: https://www.postgresql.org/message-id/CAON2xHN8y=9KeFnEb4KAKPvVks5VQaMUFJSGTv3T9VY777EKRw@mail.gmail...
Backpatch-through: 15

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7c19a14bbef39c58cb0029b95449e583822a182c

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(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1xThMp-00000000Fm3-07OG@gemulon.postgresql.org>
Permalink:  ../E1xThMp-00000000Fm3-07OG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xThMp-00000000Fm3-07OG@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Don't create a shell type for a function returning SETOF
  In-Reply-To: <E1xThMp-00000000Fm3-07OG@gemulon.postgresql.org>
  References: <E1xThMp-00000000Fm3-07OG@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox