More info in explain analyze - Mailing list pgsql-performance

From Jeff
Subject More info in explain analyze
Date
Msg-id 20031028090515.278c8342.threshar@torgo.978.org
Whole thread Raw
List pgsql-performance
This has probably been asked before, but I'll re-ask to spark debate on it again.

Is there any good reason to not have explain analyze also include information if temporary files will be required on
sorts,hashes, etc. during the processing of a query.  [Idea being setting your sort_mem won't be purely anecdotal]...
maybeinclude how much space it needed in temp files?   
something along the lines of:

Sort (Cost=1..10) (Actual=1..1000) (Temp Files=5MB)

Seeing that and looking at your current sort_mem and seeing it is 4MB you'll have the info you need to get a nice boost
byavoiding that spill at a low cost.  

--
Jeff Trout <jeff@jefftrout.com>
http://www.jefftrout.com/
http://www.stuarthamm.net/

pgsql-performance by date:

Previous
From: Manfred Koizar
Date:
Subject: Re: Guesses on what this NestLoop is for?
Next
From: Jeff
Date:
Subject: Adding foreign key performance