Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top