| От | Tom Lane |
|---|---|
| Тема | Re: count with high allocation |
| Дата | |
| Msg-id | 14229.1270650687@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | count with high allocation (paulo matadr <saddoness@yahoo.com.br>) |
| Ответы |
Res: count with high allocation
|
| Список | pgsql-general |
paulo matadr <saddoness@yahoo.com.br> writes:
> Monitoring "top" in database server , i could noticed an query with reserved 8GB on physical memory.
> select count(field) from big_table 1 inner join big_table2...
> There is the possibility of using another function with less memory allocation?
> Is there a way to limit the memory usage of the count?
It seems quite likely that what top is telling you just reflects the
process touching all shared buffers, and has nothing to do with any
real "memory consumption". What do you have shared_buffers set to?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера