Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iaLFx-0002Tz-KP for pgsql-general@arkaria.postgresql.org; Thu, 28 Nov 2019 14:58:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iaLFw-0001nc-EN for pgsql-general@arkaria.postgresql.org; Thu, 28 Nov 2019 14:58:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iaLFw-0001nV-4C for pgsql-general@lists.postgresql.org; Thu, 28 Nov 2019 14:58:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iaLFt-00014f-Vz for pgsql-general@lists.postgresql.org; Thu, 28 Nov 2019 14:58:55 +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 xASEwoQJ031446; Thu, 28 Nov 2019 09:58:50 -0500 From: Tom Lane To: Matthias Apitz cc: pgsql-general@lists.postgresql.org Subject: Re: status of CURSORs after DISCONNECT In-reply-to: <20191128062715.GA2642@c720-r342378> References: <20191128062715.GA2642@c720-r342378> Comments: In-reply-to Matthias Apitz message dated "Thu, 28 Nov 2019 07:27:15 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31444.1574953130.1@sss.pgh.pa.us> Date: Thu, 28 Nov 2019 09:58:50 -0500 Message-ID: <31445.1574953130@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Matthias Apitz writes: > When an ESQL/C written process issues a > EXEC SQL DISCONNECT [connection]; > do the opened CURSOR(s) still survive? No. Cursors are purely session-local objects in Postgres. I'm a bit surprised to hear it might be different in Sybase. regards, tom lane