Skip to content

Commit 8c4f2d5

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 parent a0e22ef commit 8c4f2d5

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 %d rows",
686+
pg_log_error("could not obtain database OID: got %d rows, expected %d row",
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 %d rows",
1651+
pg_log_error("could not obtain subscription OID: got %d rows, expected %d row",
16531652
PQntuples(res), 1);
16541653
disconnect_database(conn, true);
16551654
}

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