Thread: Show all commands executed

Show all commands executed

From
"Anderson dos Santos Donda"
Date:
How can I show on terminal all commands executed by my postgre server?

Example: My system execute the comand : 'SELECT * FROM clients' and the postgre show this commando on the terminal ?


Thanks

Re: Show all commands executed

From
Tom Lane
Date:
"Anderson dos Santos Donda" <andersondonda@gmail.com> writes:
> How can I show on terminal all commands executed by my postgre server?

You could turn on log_statements and then tail -f the postmaster log.

            regards, tom lane