command explain analyze crash with the "out of memory" error I precise that I've tried a lot of values from parameters shared_buffer and sort_mem now, in config file, values are : sort_mem=32768 and shared_buffer=30000 server has 4Go RAM. and kernel.shmmax=307200000 > On Tue, 2006-02-14 at 10:15, martial.bizel@xxxxxxx wrote: > > Yes, I've launched ANALYZE command before sending request. > > I precise that's postgres version is 7.3.4 > > So what does explain analyze show for this query, if anything? Can you > increase your sort_mem or shared_buffers (I forget which hash_agg uses > off the top of my head...) if necessary to make it work. Note you can > increase sort_mem on the fly for a given connection. > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings >