Re: [GENERAL] Memory consumption for Query

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: [GENERAL] Memory consumption for Query
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B53A2AEE5@ntex2010i.host.magwien.gv.at
обсуждение исходный текст
Ответ на [GENERAL] Memory consumption for Query  (dhaval jaiswal <dhavallj@hotmail.com>)
Ответы Re: [GENERAL] Memory consumption for Query
Список pgsql-general
dhaval jaiswal wrote:
> How to check how much memory query is consuming.
> 
> Is there tool can check of query consuming memory for the execution or output.
> 
> Let's say for following query how to calculate memory consumption.
> 
> select * from test where id=1;

That query will not consume memory worth mention unless
"test" is a non-trivial view.

You can run "EXPLAIN (ANALYZE) SELECT ..." to see how much memory is used
for memory intense operations like sort, hash or materialize.

Other operations don't really consume much memory.

Yours,
Laurenz Albe

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

Предыдущее
От: vinny
Дата:
Сообщение: Re: [GENERAL] Not sure this should be asked here but...
Следующее
От: "Christofer C. Bell"
Дата:
Сообщение: Re: [GENERAL] Recover PostgreSQL database folder data