Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f64315c commit 168d315Copy full SHA for 168d315
src/backend/postmaster/syslogger.c
@@ -1064,10 +1064,12 @@ pipeThread(void *arg)
1064
* If we've filled the current logfile, nudge the main thread to do a
1065
* log rotation.
1066
*/
1067
- if (Log_RotationSize > 0 &&
1068
- ftell(syslogFile) >= Log_RotationSize * 1024L)
1069
- SetLatch(&sysLoggerLatch);
1070
-
+ if (Log_RotationSize > 0)
+ {
+ if (ftell(syslogFile) >= Log_RotationSize * 1024L ||
+ (csvlogFile != NULL && ftell(csvlogFile) >= Log_RotationSize * 1024L))
1071
+ SetLatch(&sysLoggerLatch);
1072
+ }
1073
LeaveCriticalSection(&sysloggerSection);
1074
}
1075
0 commit comments