Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
51ec1d3d
Commit
51ec1d3d
authored
12 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
In pg_upgrade, use pg_log() instead of prep_status() for
newline-terminated messages, per suggestion from Tom. Backpatch to 9.2.
parent
f30b05b8
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/pg_upgrade/relfilenode.c
+1
-1
1 addition, 1 deletion
contrib/pg_upgrade/relfilenode.c
contrib/pg_upgrade/util.c
+1
-1
1 addition, 1 deletion
contrib/pg_upgrade/util.c
with
2 additions
and
2 deletions
contrib/pg_upgrade/relfilenode.c
+
1
−
1
View file @
51ec1d3d
...
@@ -36,7 +36,7 @@ transfer_all_new_dbs(DbInfoArr *old_db_arr,
...
@@ -36,7 +36,7 @@ transfer_all_new_dbs(DbInfoArr *old_db_arr,
new_dbnum
;
new_dbnum
;
const
char
*
msg
=
NULL
;
const
char
*
msg
=
NULL
;
p
rep_status
(
"%s user relation files
\n
"
,
p
g_log
(
PG_REPORT
,
"%s user relation files
\n
"
,
user_opts
.
transfer_mode
==
TRANSFER_MODE_LINK
?
"Linking"
:
"Copying"
);
user_opts
.
transfer_mode
==
TRANSFER_MODE_LINK
?
"Linking"
:
"Copying"
);
/* Scan the old cluster databases and transfer their files */
/* Scan the old cluster databases and transfer their files */
...
...
This diff is collapsed.
Click to expand it.
contrib/pg_upgrade/util.c
+
1
−
1
View file @
51ec1d3d
...
@@ -81,7 +81,7 @@ pg_log(eLogType type, char *fmt,...)
...
@@ -81,7 +81,7 @@ pg_log(eLogType type, char *fmt,...)
if
(
type
!=
PG_VERBOSE
||
log_opts
.
verbose
)
if
(
type
!=
PG_VERBOSE
||
log_opts
.
verbose
)
{
{
fwrite
(
message
,
strlen
(
message
),
1
,
log_opts
.
internal
);
fwrite
(
message
,
strlen
(
message
),
1
,
log_opts
.
internal
);
/* if we are using OVERWRITE_MESSAGE, add newline */
/* if we are using OVERWRITE_MESSAGE, add newline
to log file
*/
if
(
strchr
(
message
,
'\r'
)
!=
NULL
)
if
(
strchr
(
message
,
'\r'
)
!=
NULL
)
fwrite
(
"
\n
"
,
1
,
1
,
log_opts
.
internal
);
fwrite
(
"
\n
"
,
1
,
1
,
log_opts
.
internal
);
fflush
(
log_opts
.
internal
);
fflush
(
log_opts
.
internal
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment