4

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

1 Answer 1

12

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

http://www.postgresql.org/docs/current/static/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHERE

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 and acknowledge you have read our privacy policy.

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