When logging the recovery.conf parameters, show them quoted as they would
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 15 Nov 2007 22:02:12 +0000 (22:02 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 15 Nov 2007 22:02:12 +0000 (22:02 +0000)
appear in the configuration file.

src/backend/access/transam/xlog.c

index d20e13990aecae38cd70c30672a520bbc3f2751d..050e2d6306051188051ca5e4c3707ebd4b585b7c 100644 (file)
@@ -4377,7 +4377,7 @@ readRecoveryCommandFile(void)
                {
                        recoveryRestoreCommand = pstrdup(tok2);
                        ereport(LOG,
-                                       (errmsg("restore_command = \"%s\"",
+                                       (errmsg("restore_command = '%s'",
                                                        recoveryRestoreCommand)));
                }
                else if (strcmp(tok1, "recovery_target_timeline") == 0)
@@ -4435,7 +4435,7 @@ readRecoveryCommandFile(void)
                                                                                                ObjectIdGetDatum(InvalidOid),
                                                                                                                Int32GetDatum(-1)));
                        ereport(LOG,
-                                       (errmsg("recovery_target_time = %s",
+                                       (errmsg("recovery_target_time = '%s'",
                                                        timestamptz_to_str(recoveryTargetTime))));
                }
                else if (strcmp(tok1, "recovery_target_inclusive") == 0)
@@ -4504,7 +4504,7 @@ readRecoveryCommandFile(void)
                        /* Timeline 1 does not have a history file, all else should */
                        if (rtli != 1 && !existsTimeLineHistory(rtli))
                                ereport(FATAL,
-                                               (errmsg("recovery_target_timeline %u does not exist",
+                                               (errmsg("recovery target timeline %u does not exist",
                                                                rtli)));
                        recoveryTargetTLI = rtli;
                }