Re: MOVE in SQL vs PLPGSQL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: andrew(at)pillette(dot)com, pgsql-sql(at)postgresql(dot)org
Subject: Re: MOVE in SQL vs PLPGSQL
Date: 2005-10-05 15:43:04
Message-ID: 19176.1128526984@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Richard Huxton <dev(at)archonet(dot)com> writes:
> Ah, now I see what you're saying. You're quite right in your suspicions,
> "MOVE..." isn't supported for plpgsql cursors. You could probably do
> something with EXECUTE and returning a refcursor from a previous
> function, but that sounds fiddly.

> I must admit, on the odd occasion I want to skip a row, I just FETCH it
> and move on. Anyone else?

There is something on the TODO list about improving plpgsql's cursor
functionality --- there's no reason it shouldn't have MOVE, except that
no one got around to it yet.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Dmitri Bichko 2005-10-05 16:44:56 Re: Use of partial index
Previous Message Kenneth Gonsalves 2005-10-05 15:30:41 Re: BirthDay SQL Issue