Re: No explanation of other options

From: jian he <jian(dot)universality(at)gmail(dot)com>
To: themyth(dot)cs(at)gmail(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: No explanation of other options
Date: 2023-10-17 11:14:41
Message-ID: CACJufxHx1vuEzVOF5zuB8QqsZ3_OQcKpS93WsSicpfHp+S=xGA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Tue, Oct 17, 2023 at 7:00 PM PG Doc comments form
<noreply(at)postgresql(dot)org> wrote:
>
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/16/sql-move.html
> Description:
>
> A few more examples with the other options would be helpful.
>
> MOVE LAST for example shows NULL,
> What does MOVE ALL do?

I found out demo in
https://git.postgresql.org/cgit/postgresql.git/tree/src/test/regress/expected/subselect.out#n1665

You can try it:
begin;
declare c1 scroll cursor for
select * from generate_series(1,4) i
where i <> all (values (2),(3));
move forward all in c1;
fetch all in c1;
commit;

move the default direction is forward. so "move all" will act the same
as "move forward all".

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Daniel Westermann 2023-10-18 07:05:18 docs: set role permission checking, do I read this wrong?
Previous Message Laurenz Albe 2023-10-17 01:12:18 Re: "20.16. Customized Options" – cannot be set by `ALTER SYSTEM`