Re: postgres session termination - Mailing list pgsql-general

From Ragnar Hafstað
Subject Re: postgres session termination
Date
Msg-id 1107209325.27081.24.camel@localhost.localdomain
Whole thread Raw
In response to Re: postgres session termination  (Scott Marlowe <smarlowe@g2switchworks.com>)
Responses Re: postgres session termination
List pgsql-general
On Mon, 2005-01-31 at 15:38 -0600, Scott Marlowe wrote:
> On Mon, 2005-01-31 at 09:28, Alban Hertroys wrote:
> > John DeSoi wrote:
> > > I think there are much better ways to do this. If the result set is
> > > large, the user could be waiting a very long time. Two possibilities are
> > > (1) use a cursor or (2) use limit and offset in your select statement
> > > grab only the rows you need to display.
> >
> > Someone correct me if I'm wrong, but I don't think PHP supports cursors
> > (Maybe PHP 5?).
> >
> > Otherwise, that would have been a neat solution indeed.
>
> PHP supports postgresql cursors, and has since php was able to connect
> to postgresql.

well, my impression was that the OP wanted to divide result sets
between web pages, so cursors would not help anyways,as they do
not survive their session.

gnari



pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: how to release a transaction lock on a table?
Next
From: Scott Marlowe
Date:
Subject: Re: postgres session termination