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

Commit8c4f2d5

Browse files
committed
Message fixes for pg_createsubscriber
Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>Discussion:https://www.postgresql.org/message-id/20240326.140116.1116279856046587865.horikyota.ntt@gmail.com
1 parenta0e22ef commit8c4f2d5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎src/bin/pg_basebackup/pg_createsubscriber.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,7 @@ check_data_directory(const char *datadir)
372372
if (errno==ENOENT)
373373
pg_fatal("data directory \"%s\" does not exist",datadir);
374374
else
375-
pg_fatal("could not access directory \"%s\": %s",datadir,
376-
strerror(errno));
375+
pg_fatal("could not access directory \"%s\": %m",datadir);
377376
}
378377

379378
snprintf(versionfile,MAXPGPATH,"%s/PG_VERSION",datadir);
@@ -684,7 +683,7 @@ generate_object_name(PGconn *conn)
684683

685684
if (PQntuples(res)!=1)
686685
{
687-
pg_log_error("could not obtain database OID: got %d rows, expected %drows",
686+
pg_log_error("could not obtain database OID: got %d rows, expected %drow",
688687
PQntuples(res),1);
689688
disconnect_database(conn, true);
690689
}
@@ -920,7 +919,7 @@ check_publisher(const struct LogicalRepInfo *dbinfo)
920919

921920
if (strcmp(wal_level,"logical")!=0)
922921
{
923-
pg_log_error("publisher requires wal_level >= logical");
922+
pg_log_error("publisher requires wal_level >=\"logical\"");
924923
failed= true;
925924
}
926925

@@ -1649,7 +1648,7 @@ set_replication_progress(PGconn *conn, const struct LogicalRepInfo *dbinfo, cons
16491648

16501649
if (PQntuples(res)!=1&& !dry_run)
16511650
{
1652-
pg_log_error("could not obtain subscription OID: got %d rows, expected %drows",
1651+
pg_log_error("could not obtain subscription OID: got %d rows, expected %drow",
16531652
PQntuples(res),1);
16541653
disconnect_database(conn, true);
16551654
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp