0

How can I get log information from PostgreSQl server?

I found ability to watch it in pgAdmin Tolls->ServerStatus. Is there a SQL way, or API, or consol way, to show content of log file(s)?

Thanks.

2 Answers 2

1

I am command line addict, so I prefer “console” way.

Where you find logs and what will be inside those depends on how you've configured your PostgreSQL cluster. This the first thing I change after creating a new cluster, so that I get all the information I need and in the expected location.

Please, review your $PGDATA/postgresql.conf file for your current settings and adjust them in the appropriate way.

Sign up to request clarification or add additional context in comments.

Comments

0

The adminpack extension is the one providing the useful info behind pgAdmin3's server status functionality.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.