Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite435c1e

Browse files
committed
Message style improvements
1 parentcba0fe0 commite435c1e

File tree

6 files changed

+11
-12
lines changed

6 files changed

+11
-12
lines changed

‎src/bin/initdb/initdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ test_config_settings(void)
10511051
else
10521052
printf("%dkB\n",n_buffers* (BLCKSZ /1024));
10531053

1054-
printf(_("selecting defaulttimezone ... "));
1054+
printf(_("selecting defaulttime zone ... "));
10551055
fflush(stdout);
10561056
default_timezone=select_default_timezone(share_path);
10571057
printf("%s\n",default_timezone ?default_timezone :"GMT");

‎src/bin/pg_basebackup/pg_recvlogical.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,12 +1020,11 @@ prepareToTerminate(PGconn *conn, XLogRecPtr endpos, bool keepalive, XLogRecPtr l
10201020
if (verbose)
10211021
{
10221022
if (keepalive)
1023-
pg_log_info("endpos %X/%X reached by keepalive",
1023+
pg_log_info("end position %X/%X reached by keepalive",
10241024
(uint32) (endpos >>32), (uint32)endpos);
10251025
else
1026-
pg_log_info("endpos%X/%X reached by record at %X/%X",
1026+
pg_log_info("end position%X/%X reached by WAL record at %X/%X",
10271027
(uint32) (endpos >>32), (uint32) (endpos),
10281028
(uint32) (lsn >>32), (uint32)lsn);
1029-
10301029
}
10311030
}

‎src/bin/pg_checksums/pg_checksums.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ scan_file(const char *fn, BlockNumber segmentno)
235235
/* Write block with checksum */
236236
if (write(f,buf.data,BLCKSZ)!=BLCKSZ)
237237
{
238-
pg_log_error("could notupdate checksum of block %u in file \"%s\": %m",
238+
pg_log_error("could notwrite block %u in file \"%s\": %m",
239239
blockno,fn);
240240
exit(1);
241241
}
@@ -469,7 +469,7 @@ main(int argc, char *argv[])
469469
/* filenode checking only works in --check mode */
470470
if (mode!=PG_MODE_CHECK&&only_filenode)
471471
{
472-
pg_log_error("--filenodeoption onlypossible with --check");
472+
pg_log_error("option -f/--filenodecan onlybe used with --check");
473473
fprintf(stderr,_("Try \"%s --help\" for more information.\n"),
474474
progname);
475475
exit(1);

‎src/bin/pg_dump/pg_backup_db.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ _connectDB(ArchiveHandle *AH, const char *reqdb, const char *requser)
176176
newConn=PQconnectdbParams(keywords,values, true);
177177

178178
if (!newConn)
179-
fatal("failed to reconnect to database");
179+
fatal("could not reconnect to database");
180180

181181
if (PQstatus(newConn)==CONNECTION_BAD)
182182
{
@@ -287,7 +287,7 @@ ConnectDatabase(Archive *AHX,
287287
AH->connection=PQconnectdbParams(keywords,values, true);
288288

289289
if (!AH->connection)
290-
fatal("failed to connect to database");
290+
fatal("could not connect to database");
291291

292292
if (PQstatus(AH->connection)==CONNECTION_BAD&&
293293
PQconnectionNeedsPassword(AH->connection)&&

‎src/bin/pg_dump/pg_dumpall.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ main(int argc, char *argv[])
482482
OPF=fopen(filename,PG_BINARY_W);
483483
if (!OPF)
484484
{
485-
pg_log_error("could not opentheoutput file \"%s\": %m",
485+
pg_log_error("could not open output file \"%s\": %m",
486486
filename);
487487
exit_nicely(1);
488488
}
@@ -1492,11 +1492,11 @@ dumpDatabases(PGconn *conn)
14921492
/* Skip any explicitly excluded database */
14931493
if (simple_string_list_member(&database_exclude_names,dbname))
14941494
{
1495-
pg_log_info("excluding database \"%s\"...",dbname);
1495+
pg_log_info("excluding database \"%s\"",dbname);
14961496
continue;
14971497
}
14981498

1499-
pg_log_info("dumping database \"%s\"...",dbname);
1499+
pg_log_info("dumping database \"%s\"",dbname);
15001500

15011501
fprintf(OPF,"--\n-- Database \"%s\" dump\n--\n\n",dbname);
15021502

‎src/bin/pg_upgrade/option.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ usage(void)
304304
printf(_(" -p, --old-port=PORT old cluster port number (default %d)\n"),old_cluster.port);
305305
printf(_(" -P, --new-port=PORT new cluster port number (default %d)\n"),new_cluster.port);
306306
printf(_(" -r, --retain retain SQL and log files after success\n"));
307-
printf(_(" -s, --socketdir=DIR socket directory to use (defaultCWD)\n"));
307+
printf(_(" -s, --socketdir=DIR socket directory to use (defaultcurrent dir.)\n"));
308308
printf(_(" -U, --username=NAME cluster superuser (default \"%s\")\n"),os_info.user);
309309
printf(_(" -v, --verbose enable verbose internal logging\n"));
310310
printf(_(" -V, --version display version information, then exit\n"));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp