Re: Processing database query-results piecemeal

Поиск
Список
Период
Сортировка
От Abhijit Menon-Sen
Тема Re: Processing database query-results piecemeal
Дата
Msg-id 20080630112515.GA21369@toroid.org
обсуждение исходный текст
Ответ на Processing database query-results piecemeal  ("Stephen R. van den Berg" <srb@cuci.nl>)
Список pgsql-hackers
At 2008-06-30 13:17:42 +0200, srb@cuci.nl wrote:
>
> It seems that the most efficient way to communicate with the
> DB would be through PQexecParams(), which avoids the whole
> bytea-encoding issues.

Yes.

>   Does it become $10 or ${10} or $(10) or is it simply not possible
>   te reference more than nine parameters this way?

$10 etc.

> - Say that the SELECT returns 1000 rows of 100MB each, is there a way
>   to avoid PQexecParams() from wanting to allocate 1000*100MB = 100GB

Use a cursor and keep executing FETCH.

-- ams


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

Предыдущее
От: "Stephen R. van den Berg"
Дата:
Сообщение: Processing database query-results piecemeal
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Git Repository for WITH RECURSIVE and others