I recently upgraded to Postgresql 9.6 and PgAdmin 4.
Now, one handy feature of PgAdmin 3 was the "server status" window, which I used to look at the log file.
I can't find that in PgAdmin 4. How can I view the server log in PgAdmin 4? Or is there a nice alternative?
Best Answer
I have followed the guide here to use a foreign data wrapper so I can access the log file through SQL.
First, create the extension:
Next, set up postgres.conf to support csv logging. Essentially, these settings:
And also the following, from the documentation:
Create, the server and the table, and the log can be queried!