simple explain output. - Mailing list pgsql-general

From Chris
Subject simple explain output.
Date
Msg-id 43F93FAD.6070701@gmail.com
Whole thread Raw
Responses Re: simple explain output.  (Andreas Seltenreich <andreas+pg@gate450.dyndns.org>)
List pgsql-general
Hi all,

I'm pretty sure the answer to this is "not possible" but I'll ask just
in case.

Is there a way to simplify the output that comes from explain?

I'm writing a script to check my database logs to see whether I am
missing any indexes.


Basically the process goes like this:

- Find a select query in the logs
- Run it through the database using 'explain'
- Check whether it's using an index scan or "other"


Yes, I know not every query is going to use an index, but this will cut
down on the queries I have to check.

At the moment the explain output can get complicated to parse and
process, so I'm trying to think of another approach to use.

Any suggestions are welcome :)

Chris.

pgsql-general by date:

Previous
From: Michael Glaesemann
Date:
Subject: Re: Domains
Next
From: "Jan Cruz"
Date:
Subject: Re: PostgreSQL Functions / PL-Language