"Postgres User" <postgres.developer@gmail.com> writes:
> So I added the following code:
> <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.
regards, tom lane