Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ad8fbb54
Commit
ad8fbb54
authored
Sep 20, 2007
by
Andrew Dunstan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup items from csvlog changes, per ITAGAKI Takahiro.
parent
bab16af8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
src/backend/postmaster/syslogger.c
src/backend/postmaster/syslogger.c
+10
-2
src/backend/utils/misc/postgresql.conf.sample
src/backend/utils/misc/postgresql.conf.sample
+1
-1
No files found.
src/backend/postmaster/syslogger.c
View file @
ad8fbb54
...
...
@@ -18,7 +18,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/syslogger.c,v 1.3
8 2007/08/21 01:47:19 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/syslogger.c,v 1.3
9 2007/09/20 18:19:08 adunstan
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -352,7 +352,15 @@ SysLoggerMain(int argc, char *argv[])
}
if
(
rotation_requested
)
{
/*
* Force rotation when both values are zero.
* It means the request was sent by pg_rotate_logfile.
*/
if
(
!
time_based_rotation
&&
size_rotation_for
==
0
)
size_rotation_for
=
LOG_DESTINATION_STDERR
|
LOG_DESTINATION_CSVLOG
;
logfile_rotate
(
time_based_rotation
,
size_rotation_for
);
}
#ifndef WIN32
...
...
@@ -1154,7 +1162,7 @@ logfile_rotate(bool time_based_rotation, int size_rotation_for)
EnterCriticalSection
(
&
sysfileSection
);
#endif
fclose
(
csvlogFile
);
sys
logFile
=
fh
;
csv
logFile
=
fh
;
#ifdef WIN32
LeaveCriticalSection
(
&
sysfileSection
);
#endif
...
...
src/backend/utils/misc/postgresql.conf.sample
View file @
ad8fbb54
...
...
@@ -312,7 +312,7 @@
#silent_mode = off # DO NOT USE without syslog or
#
redirect_stder
r
#
logging_collecto
r
# (change requires restart)
# - What to Log -
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment