Re: More on cursors in 7.3
От | Tom Lane |
---|---|
Тема | Re: More on cursors in 7.3 |
Дата | |
Msg-id | 24986.1039382918@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | More on cursors in 7.3 ("Jeroen T. Vermeulen" <jtv@xs4all.nl>) |
Ответы |
Re: More on cursors in 7.3
|
Список | pgsql-hackers |
"Jeroen T. Vermeulen" <jtv@xs4all.nl> writes: > Looking at my problem with changed cursor behaviour in 7.3 again, I > noticed something interesting: a cursor in 7.3 apparently does not let > you scroll back to its first row at all! Oh? regression=# begin; BEGIN regression=# declare c cursor for select * from int8_tbl; DECLARE CURSOR regression=# fetch all from c; q1 | q2 ------------------+------------------- 123 | 456 123 | 45678901234567894567890123456789| 1234567890123456789 | 45678901234567894567890123456789 | -4567890123456789 (5 rows) regression=# move backward all in c; MOVE 5 regression=# fetch all from c; q1 | q2 ------------------+------------------- 123 | 456 123 | 45678901234567894567890123456789| 1234567890123456789 | 45678901234567894567890123456789 | -4567890123456789 (5 rows) regression=# I believe it is true though that backing up a cursor only works for certain plan types (seqscan, indexscan, sort, maybe a couple others). That has always been true --- 7.3 is no better nor worse than prior releases. regards, tom lane
В списке pgsql-hackers по дате отправления: