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 14ba9b1 commit 3cef217Copy full SHA for 3cef217
src/backend/postmaster/syslogger.c
@@ -1063,10 +1063,12 @@ pipeThread(void *arg)
1063
* If we've filled the current logfile, nudge the main thread to do a
1064
* log rotation.
1065
*/
1066
- if (Log_RotationSize > 0 &&
1067
- ftell(syslogFile) >= Log_RotationSize * 1024L)
1068
- SetLatch(&sysLoggerLatch);
1069
-
+ if (Log_RotationSize > 0)
+ {
+ if (ftell(syslogFile) >= Log_RotationSize * 1024L ||
+ (csvlogFile != NULL && ftell(csvlogFile) >= Log_RotationSize * 1024L))
1070
+ SetLatch(&sysLoggerLatch);
1071
+ }
1072
LeaveCriticalSection(&sysloggerSection);
1073
}
1074
0 commit comments