Content-Length: 271993 | pFad | http://github.com/postgrespro/postgres/commit/168d315703287989fd9dab0badb212c529e88691
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
Fetched URL: http://github.com/postgrespro/postgres/commit/168d315703287989fd9dab0badb212c529e88691
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments