How can I change the location of the log file in PostgreSQL? Can it be done without stopping the cluster?


re 1) See the chapter "Where to log" in the manual.


You want to change the log_directory property.

re 2) No, you need to restart Postgres when you change this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.