]> granicus.if.org Git - postgresql/commitdiff
Error message style adjustments, per Alvaro Herrera.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Aug 2004 17:45:43 +0000 (17:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Aug 2004 17:45:43 +0000 (17:45 +0000)
src/backend/access/transam/xlog.c
src/backend/postmaster/pgarch.c
src/backend/postmaster/postmaster.c

index f9a49332ba6993fdcdc90409e2fff51d5d75d721..b0fac7452669ef6b0ff268e946442e1043f3e26b 100644 (file)
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.152 2004/07/22 21:09:37 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.153 2004/08/01 17:45:42 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1936,7 +1936,7 @@ RestoreArchivedFile(char *path, const char *xlogfname,
                if (unlink(xlogpath) != 0)
                        ereport(FATAL,
                                        (errcode_for_file_access(),
-                                        errmsg("could not remove \"%s\": %m",
+                                        errmsg("could not remove file \"%s\": %m",
                                                        xlogpath)));
        }
 
@@ -3772,7 +3772,7 @@ exitArchiveRecovery(TimeLineID endTLI, uint32 endLogId, uint32 endLogSeg)
                if (rename(recoveryPath, xlogpath) != 0)
                        ereport(FATAL,
                                        (errcode_for_file_access(),
-                                        errmsg("could not rename \"%s\" to \"%s\": %m",
+                                        errmsg("could not rename file \"%s\" to \"%s\": %m",
                                                        recoveryPath, xlogpath)));
                /* XXX might we need to fix permissions on the file? */
        }
@@ -3814,7 +3814,7 @@ exitArchiveRecovery(TimeLineID endTLI, uint32 endLogId, uint32 endLogSeg)
        if (rename(recoveryCommandFile, recoveryCommandDone) != 0)
                ereport(FATAL,
                                (errcode_for_file_access(),
-                                errmsg("could not rename \"%s\" to \"%s\": %m",
+                                errmsg("could not rename file \"%s\" to \"%s\": %m",
                                                recoveryCommandFile, recoveryCommandDone)));
 
        ereport(LOG,
index d42c43195d27f1555f7d76a4be14d3b5b0f41889..a40389633319ea9a1a9cd03f7279a032009fc37b 100644 (file)
@@ -19,7 +19,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.2 2004/07/21 22:31:22 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.3 2004/08/01 17:45:43 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -587,6 +587,6 @@ pgarch_archiveDone(char *xlog)
        if (rename(rlogready, rlogdone) < 0)
                ereport(WARNING,
                                (errcode_for_file_access(),
-                                errmsg("could not rename \"%s\" to \"%s\": %m",
+                                errmsg("could not rename file \"%s\" to \"%s\": %m",
                                                rlogready, rlogdone)));
 }
index e144b6eaa93f6869971022cd5f88e8c91a2a86b0..c3123b69015a1a761f8e64c16cecd0728f94195f 100644 (file)
@@ -37,7 +37,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.417 2004/07/31 00:45:33 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.418 2004/08/01 17:45:43 tgl Exp $
  *
  * NOTES
  *
@@ -544,7 +544,7 @@ PostmasterMain(int argc, char *argv[])
                if (!guc_pgdata)        /* Got a pgdata from the config file? */
                {
                        write_stderr("%s does not know where to find the database system data.\n"
-                                                "This should be specified as 'pgdata' in %s%s.\n",
+                                                "This should be specified as \"pgdata\" in %s%s.\n",
                                                 progname, userPGDATA,
                                                 user_pgconfig_is_dir ? "/postgresql.conf" : "");
                        ExitPostmaster(2);