How to profile an "SQL script"?

Поиск
Список
Период
Сортировка
От Kynn Jones
Тема How to profile an "SQL script"?
Дата
Msg-id c2350ba40812031131r1acd66a9idd2869a4899b1798@mail.gmail.com
обсуждение исходный текст
Ответы Re: How to profile an "SQL script"?
Список pgsql-performance
Hi.  I have a longish collection of SQL statements stored in a file that I run periodically via cron.  Running this "script" takes a bit too long, even for a cron job, and I would like to streamline it.

Is there a way to tell Postgres to print out, after each SQL statement is executed, how long it took to execute?

Thanks!

Kynn

В списке pgsql-performance по дате отправления:

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Postgres using more memory than it should
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: How to profile an "SQL script"?