By default, PostgreSQL does not rotate logs. This can cause the C: Drive to fill up with PostgreSQL log files.
This article explains how to replace the default PostgreSQL configuration with one that will enable log file rotation every 24 hours.
We will replace your GSX Gizmo default PostgreSQL configuration file with one that is modified to rotate the logs:
- Download the modified PostgreSQL configuration file here:
- Stop the PostgreSQL server from Windows Services or Task Manager:
- Navigate to the following PostgreSQL path:
- Replace the existing postgresql.conf configuration file with the one downloaded in step 1:
- Delete the Log folder from the PostgreSQL path:
- From Windows Services or the Task Manager, start the PostgreSQL server Windows Service.
PostgreSQL will now recycle its log files every 24 hours.