Re: Bug(?) with cursors using aggregate functions.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Benjamin Scherrey <scherrey(at)proteus-tech(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Bug(?) with cursors using aggregate functions.
Date: 2003-04-29 03:51:51
Message-ID: 13647.1051588311@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Benjamin Scherrey <scherrey(at)proteus-tech(dot)com> writes:
> I've been developing a web-based selection browser using cursors and
> discovered a very frustrating little feature as I try to MOVE
> FORWARD/BACKWARD through my selection.

You can't run a nontrivial query plan (anything more than a seqscan or
indexscan) backwards with any reliability. There are fixes for this in
CVS tip, but not in any released version :-(. It should also be noted
that the fix consists of saving-aside copies of all rows emitted by the
underlying query, so if you are talking about a large result set you
might not like the performance...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-04-29 04:02:20 Re: Bad timestamp external representation
Previous Message Stephan Szabo 2003-04-29 03:26:11 Re: Bad timestamp external representation