Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b30769e

Browse files
committed
When logging the recovery.conf parameters, show them quoted as they would
appear in the configuration file.
1 parent 1f735c3 commit b30769e

File tree

1 file changed

+4
-4
lines changed
  • src/backend/access/transam

1 file changed

+4
-4
lines changed

src/backend/access/transam/xlog.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.288 2007/11/15 21:14:32 momjian Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.289 2007/11/15 22:02:12 petere Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -4377,7 +4377,7 @@ readRecoveryCommandFile(void)
43774377
{
43784378
recoveryRestoreCommand = pstrdup(tok2);
43794379
ereport(LOG,
4380-
(errmsg("restore_command = \"%s\"",
4380+
(errmsg("restore_command = '%s'",
43814381
recoveryRestoreCommand)));
43824382
}
43834383
else if (strcmp(tok1, "recovery_target_timeline") == 0)
@@ -4435,7 +4435,7 @@ readRecoveryCommandFile(void)
44354435
ObjectIdGetDatum(InvalidOid),
44364436
Int32GetDatum(-1)));
44374437
ereport(LOG,
4438-
(errmsg("recovery_target_time = %s",
4438+
(errmsg("recovery_target_time = '%s'",
44394439
timestamptz_to_str(recoveryTargetTime))));
44404440
}
44414441
else if (strcmp(tok1, "recovery_target_inclusive") == 0)
@@ -4504,7 +4504,7 @@ readRecoveryCommandFile(void)
45044504
/* Timeline 1 does not have a history file, all else should */
45054505
if (rtli != 1 && !existsTimeLineHistory(rtli))
45064506
ereport(FATAL,
4507-
(errmsg("recovery_target_timeline %u does not exist",
4507+
(errmsg("recovery target timeline %u does not exist",
45084508
rtli)));
45094509
recoveryTargetTLI = rtli;
45104510
}

0 commit comments

Comments
 (0)