| От | Scott Marlowe |
|---|---|
| Тема | Re: Customizing psql console to show execution times |
| Дата | |
| Msg-id | dcc563d10708150838h6e39921kda7f71d5f3fb481a@mail.gmail.com обсуждение |
| Ответ на | Customizing psql console to show execution times ("Phoenix Kiula" <phoenix.kiula@gmail.com>) |
| Список | pgsql-general |
On 8/15/07, Phoenix Kiula <phoenix.kiula@gmail.com> wrote: > In some examples posted to this forum, it seems to me that when people > execute queries in the psql window, they also see "90 ms taken" > (milliseconds), which denotes the time taken to execute the query. > Where can I set this option because I'm not seeing it in my psql > window on both Win XP and Linux. Thanks! If your on an OS with a time command (linux, windows with the gnu utils ported to it) you can do: time psql -c "select ..." OR you can do echo "\\\timing\nselect ...."|psql dbname This is all from linux. I don't know how this "windows" you speak of works really. Seriously, I stopped using it so long ago I'm lost when I'm on it.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера