Re: Tail -f or watch for postgres

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Tail -f or watch for postgres
Дата
Msg-id j2wdcc563d11004200332hf17ead27l8c21f8b3aaf17c12@mail.gmail.com
обсуждение исходный текст
Ответ на Tail -f or watch for postgres  (Renato Oliveira <renato.oliveira@grant.co.uk>)
Ответы Re: Tail -f or watch for postgres  (Scott Mead <scott.lists@enterprisedb.com>)
Список pgsql-admin
On Tue, Apr 20, 2010 at 1:20 AM, Renato Oliveira
<renato.oliveira@grant.co.uk> wrote:
> Dear all,
>
> It may sounds crazy it may not sound so crazy.
>
> I was here think are there any commands to watch new transactions rolling
> through the screen like a terminal monitor?
>
> For example, if you want to watch a log file you can execute the command;
> tail –f <logfile> or watch.
>
> This will keep the log entries rolling and being displayed on screen.
>
> Is there something similar to postgreSQL?

while true; do psql mydb -c "select * from pg_stat_activity where
current_query <>'<IDLE>'";sleep 10;done

or something like that.

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

Предыдущее
От: Renato Oliveira
Дата:
Сообщение: Tail -f or watch for postgres
Следующее
От: Scott Mead
Дата:
Сообщение: Re: Tail -f or watch for postgres