OurBigBook About$ Donate
 Sign in+ Sign up
by Ciro Santilli (@cirosantilli, 37)

PostgreSQL logging

 ... Type of database Relational database Relational database management system SQL SQL implementation PostgreSQL
 0 By others on same topic  0 Discussions  Updated 2025-06-12  +Created 1970-01-01  See my version
stackoverflow.com/questions/722221/how-to-log-postgresql-queries
Ubuntu 21.10 has a certain default level of logging by default to:
/var/log/postgresql/postgresql-13-main.log
but it does not log everything, only/mostly errors it seems.
Setting:
log_statement = 'all'
under:
/etc/postgresql/13/main/postgresql.conf
and then restarting the server:
sudo service restart postgresql
just works.
Realtime monitoring for long queries instead: stackoverflow.com/questions/8597516/app-to-monitor-postgresql-queries-in-real-time

 Ancestors (13)

  1. PostgreSQL
  2. SQL implementation
  3. SQL
  4. Relational database management system
  5. Relational database
  6. Type of database
  7. Database
  8. Software
  9. Computer
  10. Information technology
  11. Area of technology
  12. Technology
  13.  Home

 View article source

 Discussion (0)

+ New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic + Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook