Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVbwM-0000W9-1c for pgsql-general@arkaria.postgresql.org; Sun, 11 Apr 2021 15:23:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lVbwK-0000vp-GO for pgsql-general@arkaria.postgresql.org; Sun, 11 Apr 2021 15:23:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVbwK-0000vi-7X for pgsql-general@lists.postgresql.org; Sun, 11 Apr 2021 15:23:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVbwH-00007A-SF for pgsql-general@postgresql.org; Sun, 11 Apr 2021 15:23:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 13BFNpWs2671627; Sun, 11 Apr 2021 11:23:51 -0400 From: Tom Lane To: "Abraham, Danny" cc: "pgsql-general@postgresql.org" Subject: Re: Reuse of REF Cursor In-reply-to: References: Comments: In-reply-to "Abraham, Danny" message dated "Sun, 11 Apr 2021 15:03:00 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2671625.1618154631.1@sss.pgh.pa.us> Date: Sun, 11 Apr 2021 11:23:51 -0400 Message-ID: <2671626.1618154631@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Abraham, Danny" writes: > Has anybody faced a problem with reusing a ref cursor? Your fragment looks like it ought to work, but it's hard to say where the problem is without seeing a complete example. > PG Version 9.5.5 on Linux. 9.5.x is EOL, and the last release in that series was 9.5.25, so you *really* oughta think about an update. regards, tom lane