Re: understanding explain data - Mailing list pgsql-general

From Alban Hertroys
Subject Re: understanding explain data
Date
Msg-id 4461DD02.5050401@magproductions.nl
Whole thread Raw
In response to understanding explain data  (Sim Zacks <sim@compulab.co.il>)
Responses Re: understanding explain data
Re: understanding explain data
Re: understanding explain data
List pgsql-general
Sim Zacks wrote:
> Something such as: with this explain data, adding an index on table tbl
> column A would drastically improve the efficiency. Or at least an
> application that would say, the least efficient part of your query is on
> this part of the code so that you could more easily figure out what to
> do about it.

The latter part is the most useful IMO, optimizing usually needs a
(human) brain to put things into the right perspective. Adding an index
can speed up your queries only so much, a more optimal data presentation
  (like moving calculations to insert/update instead of select) can do a
lot more sometimes.

It looks like something like that shouldn't be too hard to write...
Maybe it even does exist already. Personally I'd prefer a command line
tool ;)
It would help if you can pipe the output of explain analyze to an
external tool from within psql.

Regards,
--
Alban Hertroys
alban@magproductions.nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
    7500 AK Enschede

// Integrate Your World //

pgsql-general by date:

Previous
From: Douglas McNaught
Date:
Subject: Re: Arguments Pro/Contra Software Raid
Next
From: Florian Weimer
Date:
Subject: Re: [PERFORM] Arguments Pro/Contra Software Raid