Re: BUG #1756: PQexec eats huge amounts of memory

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: BUG #1756: PQexec eats huge amounts of memory
Дата
Msg-id 42CCC395.7080204@samurai.com
обсуждение исходный текст
Ответ на BUG #1756: PQexec eats huge amounts of memory  ("Denis Vlasenko" <vda@ilport.com.ua>)
Ответы Re: BUG #1756: PQexec eats huge amounts of memory  (Denis Vlasenko <vda@ilport.com.ua>)
Список pgsql-bugs
Denis Vlasenko wrote:
> Symptom: even the simplest query
> $result = pg_query($db, "SELECT * FROM big_table");
> eats enormous amounts of memory on server
> (proportional to table size).

Right, which is exactly what you would expect. The entire result set is
sent to the client and stored in local memory; if you only want to
process part of the result set at a time, use a cursor.

(And I'm a little suspicious that the performance of "SELECT * FROM
big_table" will contribute to a meaningful comparison between database
systems.)

-Neil

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Creating trigger function with argument(s) gets backend crash.
Следующее
От: Neil Conway
Дата:
Сообщение: Re: BUG #1756: PQexec eats huge amounts of memory