Re: FETCH FORWARD 0 and "cursor can only scan forward" error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Trigve Siver <trigves(at)yahoo(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: FETCH FORWARD 0 and "cursor can only scan forward" error
Date: 2013-09-04 17:04:38
Message-ID: 6138.1378314278@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Trigve Siver <trigves(at)yahoo(dot)com> writes:
> yes I know that when specifying "FORWARD 0" that no move is done and
> actual record is returned. But my question is why it is forbidden by "NO
> SCROLL"?

Because it's implemented as "back up 1 row and re-fetch".

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Evan Martin 2013-09-04 17:08:06 Re: Spurious error messages from pg_restore
Previous Message Trigve Siver 2013-09-04 16:57:21 Re: FETCH FORWARD 0 and "cursor can only scan forward" error