Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5cc380f

Browse files
committed
Error message style adjustments, per Alvaro Herrera.
1 parent efcaf1e commit 5cc380f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
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-2003, 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.152 2004/07/22 21:09:37 tgl Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.153 2004/08/01 17:45:42 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1936,7 +1936,7 @@ RestoreArchivedFile(char *path, const char *xlogfname,
19361936
if (unlink(xlogpath) != 0)
19371937
ereport(FATAL,
19381938
(errcode_for_file_access(),
1939-
errmsg("could not remove \"%s\": %m",
1939+
errmsg("could not remove file \"%s\": %m",
19401940
xlogpath)));
19411941
}
19421942

@@ -3772,7 +3772,7 @@ exitArchiveRecovery(TimeLineID endTLI, uint32 endLogId, uint32 endLogSeg)
37723772
if (rename(recoveryPath, xlogpath) != 0)
37733773
ereport(FATAL,
37743774
(errcode_for_file_access(),
3775-
errmsg("could not rename \"%s\" to \"%s\": %m",
3775+
errmsg("could not rename file \"%s\" to \"%s\": %m",
37763776
recoveryPath, xlogpath)));
37773777
/* XXX might we need to fix permissions on the file? */
37783778
}
@@ -3814,7 +3814,7 @@ exitArchiveRecovery(TimeLineID endTLI, uint32 endLogId, uint32 endLogSeg)
38143814
if (rename(recoveryCommandFile, recoveryCommandDone) != 0)
38153815
ereport(FATAL,
38163816
(errcode_for_file_access(),
3817-
errmsg("could not rename \"%s\" to \"%s\": %m",
3817+
errmsg("could not rename file \"%s\" to \"%s\": %m",
38183818
recoveryCommandFile, recoveryCommandDone)));
38193819

38203820
ereport(LOG,

src/backend/postmaster/pgarch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
*
2121
* IDENTIFICATION
22-
* $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.2 2004/07/21 22:31:22 tgl Exp $
22+
* $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.3 2004/08/01 17:45:43 tgl Exp $
2323
*
2424
*-------------------------------------------------------------------------
2525
*/
@@ -587,6 +587,6 @@ pgarch_archiveDone(char *xlog)
587587
if (rename(rlogready, rlogdone) < 0)
588588
ereport(WARNING,
589589
(errcode_for_file_access(),
590-
errmsg("could not rename \"%s\" to \"%s\": %m",
590+
errmsg("could not rename file \"%s\" to \"%s\": %m",
591591
rlogready, rlogdone)));
592592
}

src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.417 2004/07/31 00:45:33 tgl Exp $
40+
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.418 2004/08/01 17:45:43 tgl Exp $
4141
*
4242
* NOTES
4343
*
@@ -544,7 +544,7 @@ PostmasterMain(int argc, char *argv[])
544544
if (!guc_pgdata) /* Got a pgdata from the config file? */
545545
{
546546
write_stderr("%s does not know where to find the database system data.\n"
547-
"This should be specified as 'pgdata' in %s%s.\n",
547+
"This should be specified as \"pgdata\" in %s%s.\n",
548548
progname, userPGDATA,
549549
user_pgconfig_is_dir ? "/postgresql.conf" : "");
550550
ExitPostmaster(2);

0 commit comments

Comments
 (0)