Error using cursors/fetch and execute

Поиск
Список
Период
Сортировка
От Magnus Naeslund(f)
Тема Error using cursors/fetch and execute
Дата
Msg-id 044701c2b650$cef55a20$f80c0a0a@mnd
обсуждение исходный текст
Ответы Re: Error using cursors/fetch and execute  ("Jeroen T. Vermeulen" <jtv@xs4all.nl>)
Список pgsql-hackers
I have a problem...
We're using cursors to be able to fetch X tuples from the server.
If we would take 'em all our app would blow up because of memory
constraints.
What i would like to is something like this:

mag=# create table test (id serial unique primary key, txt text);
mag=# insert into test(txt) values('hoho1');
mag=# prepare berra (integer) as select * from test where id = $1;
mag=# declare berra_c cursor for execute berra(1);
ERROR:  parser: parse error at or near "execute" at character 28

Is there any other way of fetching less than all rows at once, similar
to that of using cursors. I don't use it for any other purpose than
that.

Magnus

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Programmer/Networker [|] Magnus Naeslund
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jean-Michel POURE
Дата:
Сообщение: UTF-8 psql support
Следующее
От: Jean-Michel POURE
Дата:
Сообщение: UTF-8 encoding question regarding PhpPgAdmin development