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 -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general