simple explain output.

Поиск
Список
Период
Сортировка
От Chris
Тема simple explain output.
Дата
Msg-id 43F93FAD.6070701@gmail.com
обсуждение исходный текст
Ответы Re: simple explain output.  (Andreas Seltenreich <andreas+pg@gate450.dyndns.org>)
Список 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 по дате отправления:

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: Domains
Следующее
От: "Jan Cruz"
Дата:
Сообщение: Re: PostgreSQL Functions / PL-Language