Skip to content

Commit ffbce80

Browse files
committed
Message fixes
1 parent cd3e274 commit ffbce80

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/bin/pg_checksums/pg_checksums.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@ scan_file(const char *fn, BlockNumber segmentno)
228228
/* Seek back to beginning of block */
229229
if (lseek(f, -BLCKSZ, SEEK_CUR) < 0)
230230
{
231-
pg_log_error("seek failed for block %d in file \"%s\": %m", blockno, fn);
231+
pg_log_error("seek failed for block %u in file \"%s\": %m", blockno, fn);
232232
exit(1);
233233
}
234234

235235
/* Write block with checksum */
236236
if (write(f, buf.data, BLCKSZ) != BLCKSZ)
237237
{
238-
pg_log_error("could not update checksum of block %d in file \"%s\": %m",
238+
pg_log_error("could not update checksum of block %u in file \"%s\": %m",
239239
blockno, fn);
240240
exit(1);
241241
}

src/bin/pg_rewind/pg_rewind.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ usage(const char *progname)
7373
printf(_(" --source-pgdata=DIRECTORY source data directory to synchronize with\n"));
7474
printf(_(" --source-server=CONNSTR source server to synchronize with\n"));
7575
printf(_(" -n, --dry-run stop before modifying anything\n"));
76-
printf(_(" -N, --no-sync do not wait for changes to be written\n"));
77-
printf(_(" safely to disk\n"));
76+
printf(_(" -N, --no-sync do not wait for changes to be written\n"
77+
" safely to disk\n"));
7878
printf(_(" -P, --progress write progress messages\n"));
7979
printf(_(" --debug write a lot of debug messages\n"));
8080
printf(_(" -V, --version output version information, then exit\n"));

src/bin/pg_upgrade/check.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ check_for_tables_with_oids(ClusterInfo *cluster)
901901
bool found = false;
902902
char output_path[MAXPGPATH];
903903

904-
prep_status("Checking for tables WITH OIDs");
904+
prep_status("Checking for tables WITH OIDS");
905905

906906
snprintf(output_path, sizeof(output_path),
907907
"tables_with_oids.txt");

src/bin/scripts/vacuumdb.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -409,30 +409,30 @@ vacuum_one_database(const char *dbname, vacuumingOptions *vacopts,
409409
if (vacopts->disable_page_skipping && PQserverVersion(conn) < 90600)
410410
{
411411
PQfinish(conn);
412-
pg_log_error("cannot use the \"%s\" option on server versions older than PostgreSQL 9.6",
413-
"disable-page-skipping");
412+
pg_log_error("cannot use the \"%s\" option on server versions older than PostgreSQL %s",
413+
"disable-page-skipping", "9.6");
414414
exit(1);
415415
}
416416

417417
if (vacopts->skip_locked && PQserverVersion(conn) < 120000)
418418
{
419419
PQfinish(conn);
420-
pg_log_error("cannot use the \"%s\" option on server versions older than PostgreSQL 12",
421-
"skip-locked");
420+
pg_log_error("cannot use the \"%s\" option on server versions older than PostgreSQL %s",
421+
"skip-locked", "12");
422422
exit(1);
423423
}
424424

425425
if (vacopts->min_xid_age != 0 && PQserverVersion(conn) < 90600)
426426
{
427-
pg_log_error("cannot use the \"%s\" option on server versions older than PostgreSQL 9.6",
428-
"--min-xid-age");
427+
pg_log_error("cannot use the \"%s\" option on server versions older than PostgreSQL %s",
428+
"--min-xid-age", "9.6");
429429
exit(1);
430430
}
431431

432432
if (vacopts->min_mxid_age != 0 && PQserverVersion(conn) < 90600)
433433
{
434-
pg_log_error("cannot use the \"%s\" option on server versions older than PostgreSQL 9.6",
435-
"--min-mxid-age");
434+
pg_log_error("cannot use the \"%s\" option on server versions older than PostgreSQL %s",
435+
"--min-mxid-age", "9.6");
436436
exit(1);
437437
}
438438

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy