Re: cursors outside transactions

From: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Dave Cramer <Dave(at)micro-automation(dot)net>, Neil Conway <neilc(at)samurai(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: cursors outside transactions
Date: 2003-03-20 00:23:46
Message-ID: 3E790A12.30A0BC6E@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian wrote:
>
> Tom Lane wrote:
> > Dave Cramer <Dave(at)micro-automation(dot)net> writes:
> > > On Tue, 2003-03-18 at 19:00, Hiroshi Inoue wrote:
> > >> ODBC(maybe JDBC also) has cross-transaction result sets
> > >> (rather than cursors) since long by simply holding all
> > >> results for a query at client side.
> >
> > > JDBC is running into problems with this. Large queries cause out of
> > > memory exceptions.
> >
> > Cursors implemented as Neil suggests would cause out-of-disk
> > exceptions. The limit is presumably further away than
> > out-of-memory, but not any the less real. I'm concerned
> > about this because, in my mind, one of the principal uses of
> > cursors is to deal with too-huge-to-materialize result sets.
>
> I don't see how you can class out of memory in the same likelyhood as
> out of disk --- sure they are both real possible failures, but clearly
> the latter is more rare and giving folks backing store for large result
> sets is a big win in my book.

Other than the out of disk/memory problem, there 's
another problem. What I expect of cursors is the
constant response time while handling them.

regards,
Hiroshi Inoue
http://www.geocities.jp/inocchichichi/psqlodbc/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Bartunov 2003-03-20 01:32:56 Re: string || NULL ambiguity
Previous Message Hiroshi Inoue 2003-03-20 00:06:15 Re: Nested transactions: low level stuff