Re: [GENERAL] Memory consumption for Query

Поиск
Список
Период
Сортировка
От dhaval jaiswal
Тема Re: [GENERAL] Memory consumption for Query
Дата
Msg-id PN1PR01MB0046F5A957C642FFA613E64BDF1F0@PN1PR01MB0046.INDPRD01.PROD.OUTLOOK.COM
обсуждение исходный текст
Ответ на Re: [GENERAL] Memory consumption for Query  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Список pgsql-general

>> Other operations don't really consume much memory.


Is there any way to find out that as well. 


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

I am aware of it.

 


Sent from Outlook




From: Albe Laurenz <laurenz.albe@wien.gv.at>
Sent: Monday, April 24, 2017 12:54 PM
To: 'dhaval jaiswal *EXTERN*'; PostgreSQL General
Subject: RE: Memory consumption for Query
 
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 по дате отправления:

Предыдущее
От: Vincent Veyron
Дата:
Сообщение: Re: [GENERAL] Not sure this should be asked here but...
Следующее
От: Ivan Voras
Дата:
Сообщение: [GENERAL] DROP INDEX CASCADE doesn't want to drop unique constraints?