Re: how much memory (work_mem) is a query using?

Поиск
Список
Период
Сортировка
От raghu ram
Тема Re: how much memory (work_mem) is a query using?
Дата
Msg-id d331f2ee0906302044k721b144ev3a62688f19eaa773@mail.gmail.com
обсуждение исходный текст
Ответ на how much memory (work_mem) is a query using?  (Kevin Kempter <kevink@consistentstate.com>)
Список pgsql-admin


On Tue, Jun 30, 2009 at 5:20 AM, Kevin Kempter <kevink@consistentstate.com> wrote:
Hi all;

is it possible to see how much work_mem memory a particular session is using?




--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Hi,

You can’t able to see memory allocated for the particular session in database.

The work_mem specifies the amount of memory to be used by internal sort operations and hash tables before switching to temporary disk files. The default value in database is 1MB.

Several running sessions could be doing such operations concurrently, so the total memory used could be many times the value of work_mem (It is necessary to keep this fact in mind when choosing the value).

Sort operations are used for ORDER BY, DISTINCT, and merge joins. Hash tables are used in hash joins, hash-based aggregation, and hash-based processing of IN subqueries. Thanks & Regards,
Raghu Ram

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

Предыдущее
От: Scott Mead
Дата:
Сообщение: Re: Restiring pg_dump text file
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Restiring pg_dump text file