Re: select count() out of memory

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: select count() out of memory
Дата
Msg-id 87y7drlc5o.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на select count() out of memory  (tfinneid@student.matnat.uio.no)
Ответы Re: select count() out of memory
Список pgsql-general
<tfinneid@student.matnat.uio.no> writes:

>
>     ERROR:  out of memory
>     DETAIL:  Failed on request of size 130.
>
> Does anybody have any suggestion as to which parameter I should tune to
> give it more memory to be able to perform queries on the root table?

This indicates that malloc() failed which means the system couldn't provide
any more memory. Either you have a very low memory ulimit (look at ulimit -a
in the same session as Postgres) or your machine is really low on memory.
Perhaps you have shared_buffers set very high or some other program is using
all your available memory (and swap)?

> The last parts of the db log is the following, I dont think anything other
> than the last 2 lines are relevant.

You're wrong. All the lines like:

> pg_attribute_relid_attnum_index: 1024 total in 1 blocks; 328 free (0
> chunks); 696 used

are a dump of Postgres's current memory allocations and could be useful in
showing if there's a memory leak causing this.

Also, what version of Postgres is this?

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com

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

Предыдущее
От: Ow Mun Heng
Дата:
Сообщение: Re: Indexes & Primary Keys (based on the same columns)
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: [PGSQL v8.2.5] Similar queries behave differently