Re: Tail -f or watch for postgres - Mailing list pgsql-admin

From Scott Marlowe
Subject Re: Tail -f or watch for postgres
Date
Msg-id j2wdcc563d11004200332hf17ead27l8c21f8b3aaf17c12@mail.gmail.com
Whole thread Raw
In response to Tail -f or watch for postgres  (Renato Oliveira <renato.oliveira@grant.co.uk>)
Responses Re: Tail -f or watch for postgres  (Scott Mead <scott.lists@enterprisedb.com>)
List 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 by date:

Previous
From: Renato Oliveira
Date:
Subject: Tail -f or watch for postgres
Next
From: Scott Mead
Date:
Subject: Re: Tail -f or watch for postgres