Re: about cursors - Mailing list pgsql-general

From Ottavio Campana
Subject Re: about cursors
Date
Msg-id 46749544.2050009@campana.vi.it
Whole thread Raw
In response to Re: about cursors  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: about cursors
List pgsql-general
Martijn van Oosterhout wrote:
>> One last question: what happens to unclosed cursors? I mean, suppose an
>> application opens a cursor and crashes. What happens to that cursor? Is
>> there a way to close idle cursors?
>
> Cursors are attached to the transactio and session, if either ends, the
> cursor dies with it...
>
> Have a nice day,

another question:

since they live in a transaction, how can they be used in web apps?
Suppose you want to display only a subset of records a time in a page,
each time you load a page you have to start a new transaction and
therefore you need a new cursor, or not?

--
Non c'e' piu' forza nella normalita', c'e' solo monotonia.


Attachment

pgsql-general by date:

Previous
From: "Andrej Ricnik-Bay"
Date:
Subject: Re: PHP sucks!! - was: persistent db connections in PHP
Next
From: Greg Smith
Date:
Subject: Re: What O/S or hardware feature would be useful for databases?