From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-hackers@lists.postgresql.org
Subject: Why isn't pg_stat_get_subscription() marked as proretset?
Date: Sun, 07 Mar 2021 13:29:42 -0500
Message-ID: <1636062.1615141782@sss.pgh.pa.us> (raw)
The code in pg_stat_get_subscription() appears to believe that it
can return a set of rows, but its pg_proc entry does not have
proretset set. It may be that this somehow accidentally fails
to malfunction when the function is used via the system views,
but if you try to call it directly it falls over:
regression=# select pg_stat_get_subscription(0);
ERROR: set-valued function called in context that cannot accept a set
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgsql-hackers@lists.postgresql.org
Subject: Re: Why isn't pg_stat_get_subscription() marked as proretset?
In-Reply-To: <1636062.1615141782@sss.pgh.pa.us>
* 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