DBA Hub

📋Steps in this guide1/1

How to rotate server log in postgres

Below command signals the log-file manager to switch to a new output file immediately.it is just like an alert log

postgresql configurationintermediate
by PostgreSQL
13 views
1

How to rotate server log in postgres

Code/Command (click line numbers to comment):

1
2
3
4
5
6
Below command signals the log-file manager to switch to a new output file immediately.it is just like an alert log
postgres=#
select pg_rotate_logfile() ;
pg_rotate_logfile
-------------------
t

Comments (0)

Please to add comments

No comments yet. Be the first to comment!