From 912bc4f038b3daaea4477c4b4e79fbd8c15e67a0 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 12 Jul 2011 07:13:51 +0300 Subject: Make pg_upgrade output more consistent with project style Add errno-based output to error messages where appropriate, reformat blocks to about 72 characters per line, use spaces instead of tabs for indentation, and other style adjustments. --- contrib/pg_upgrade/server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/pg_upgrade/server.c') diff --git a/contrib/pg_upgrade/server.c b/contrib/pg_upgrade/server.c index 58c1234a948..59eaad9dcf7 100644 --- a/contrib/pg_upgrade/server.c +++ b/contrib/pg_upgrade/server.c @@ -84,7 +84,7 @@ executeQueryOrDie(PGconn *conn, const char *fmt,...) if ((status != PGRES_TUPLES_OK) && (status != PGRES_COMMAND_OK)) { - pg_log(PG_REPORT, "DB command failed\n%s\n%s\n", command, + pg_log(PG_REPORT, "SQL command failed\n%s\n%s\n", command, PQerrorMessage(conn)); PQclear(result); PQfinish(conn); @@ -200,7 +200,7 @@ start_postmaster(ClusterInfo *cluster) PQerrorMessage(conn)); if (conn) PQfinish(conn); - pg_log(PG_FATAL, "unable to connect to %s postmaster started with the command: %s\n", + pg_log(PG_FATAL, "could not connect to %s postmaster started with the command: %s\n", CLUSTER_NAME(cluster), cmd); } PQfinish(conn); -- cgit v1.2.3