Re: Query performance - Mailing list pgsql-performance

From Grzegorz Jaśkiewicz
Subject Re: Query performance
Date
Msg-id 2f4958ff0910120810o20b2fbceva75d8ea15cd92848@mail.gmail.com
Whole thread Raw
In response to Re: Query performance  (S Arvind <arvindwill@gmail.com>)
List pgsql-performance


2009/10/12 S Arvind <arvindwill@gmail.com>
Thanks Grzegorz,
        But work memory is for each process (connection) rt? so if i keep more then 10MB will not affect the overall performance ?
it will. But the memory is only allocated when needed.
You can always set it before running that particular query, and than put it back to default value. 
just use SET work_mem=64MB

Mind you , postgresql requires more memory to sort same set of data on disc than on memory. Your explain analyze indicates, that it used 2912kB , which means your work_mem value is set to some ridiculously low value. Put it up to 8MB or something, and retry.



--
GJ

pgsql-performance by date:

Previous
From: S Arvind
Date:
Subject: Re: Query performance
Next
From: Dimitri Fontaine
Date:
Subject: Re: Best suiting OS