Re: status of CURSORs after DISCONNECT

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Matthias Apitz <guru(at)unixarea(dot)de>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: status of CURSORs after DISCONNECT
Date: 2019-11-28 14:58:50
Message-ID: 31445.1574953130@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Matthias Apitz <guru(at)unixarea(dot)de> 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message George Neuner 2019-11-28 15:04:53 Re: status of CURSORs after DISCONNECT
Previous Message Laurenz Albe 2019-11-28 14:39:40 Re: Re: Postgres Full Text Search Jsonb Array column does not search for first row