Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g783w-0005Im-H2 for pgsql-general@arkaria.postgresql.org; Mon, 01 Oct 2018 23:57:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g783u-0004Fk-Nu for pgsql-general@arkaria.postgresql.org; Mon, 01 Oct 2018 23:57:14 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g783u-0004Fd-Cq for pgsql-general@lists.postgresql.org; Mon, 01 Oct 2018 23:57:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g783s-00018l-09 for pgsql-general@lists.postgresql.org; Mon, 01 Oct 2018 23:57:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w91Nv8bZ004494; Mon, 1 Oct 2018 19:57:08 -0400 From: Tom Lane To: Jan Kohnert cc: pgsql-general@lists.postgresql.org Subject: Re: Postgres 11 procedures and result sets In-reply-to: <10467048.Hd5HFnr8GS@kohni-mobil> References: <10467048.Hd5HFnr8GS@kohni-mobil> Comments: In-reply-to Jan Kohnert message dated "Mon, 01 Oct 2018 23:53:54 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4492.1538438228.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 01 Oct 2018 19:57:08 -0400 Message-ID: <4493.1538438228@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jan Kohnert writes: > I have a question regarding the new stored procedures in Postgres 11 (I = tested = > beta4): > I'd like to know if it is somehow possible to get a (or possibly more) r= esult = > set from selects within the SP, as it is possible in MariaDB, MySQL, or = SQL = > Server. = Not there as of v11, other than the refcursor approach you already know about. We hope to have something nicer worked out for v12. There are a lot of compatibility issues to sort through :-( regards, tom lane