Re: [GENERAL] Memory consumption for Query - Mailing list pgsql-general

From Albe Laurenz
Subject Re: [GENERAL] Memory consumption for Query
Date
Msg-id A737B7A37273E048B164557ADEF4A58B53A2AEE5@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to [GENERAL] Memory consumption for Query  (dhaval jaiswal <dhavallj@hotmail.com>)
Responses Re: [GENERAL] Memory consumption for Query  (dhaval jaiswal <dhavallj@hotmail.com>)
List 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 by date:

Previous
From: vinny
Date:
Subject: Re: [GENERAL] Not sure this should be asked here but...
Next
From: "Christofer C. Bell"
Date:
Subject: Re: [GENERAL] Recover PostgreSQL database folder data