"Postgres User" <postgres(dot)developer(at)gmail(dot)com> writes:
> On 3/1/07, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> "Postgres User" <postgres(dot)developer(at)gmail(dot)com> writes:
>>> <before opening cursor> ref_entry = 'c_entry';
>>> <after looping thru cursor> MOVE Backward All In c_entry;
>>
>> You have to use EXECUTE for the latter.
> I had tried several variations of MOVE Backward inside an Execute
> statement earlier. And now, I'm seeing this error appear again:
> ERROR: 0A000: cannot manipulate cursors directly in PL/pgSQL
Hm, you're right. This arises from the fact that _SPI_execute_plan
rejects cursor-related utility statements. While I'd never stopped
to question that before, it does seem like this restriction is a
bit pointless. Does anyone remember why it's like that?
regards, tom lane
In response to
Responses
pgsql-hackers by date
| Next: | From: Tatsuo Ishii | Date: 2007-03-02 07:11:42 |
| Subject: Re: HOT - preliminary results |
| Previous: | From: Pavan Deolasee | Date: 2007-03-02 07:01:00 |
| Subject: Re: HOT - preliminary results |
pgsql-general by date
| Next: | From: Richard Huxton | Date: 2007-03-02 07:53:45 |
| Subject: Re: Differences in identical queries |
| Previous: | From: Tom Lane | Date: 2007-03-02 06:26:37 |
| Subject: Re: How often do I need to reindex tables? |