summaryrefslogtreecommitdiff
path: root/src/bin/psql/common.c
diff options
context:
space:
mode:
authorTom Lane2019-05-22 16:55:34 +0000
committerTom Lane2019-05-22 16:55:34 +0000
commitbe76af171cdb3e7465c4ef234af403f97ad79b7b (patch)
tree1fa62d2b7a6680a4237a1548f7002fa0b234b143 /src/bin/psql/common.c
parent66a4bad83aaa6613a45a00a488c04427f9969fb4 (diff)
Initial pgindent run for v12.
This is still using the 2.0 version of pg_bsd_indent. I thought it would be good to commit this separately, so as to document the differences between 2.0 and 2.1 behavior. Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/bin/psql/common.c')
-rw-r--r--src/bin/psql/common.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c
index 9579e106304..44a782478d1 100644
--- a/src/bin/psql/common.c
+++ b/src/bin/psql/common.c
@@ -199,7 +199,7 @@ psql_get_variable(const char *varname, PsqlScanQuoteType quote,
if (!appendShellStringNoError(&buf, value))
{
pg_log_error("shell command argument contains a newline or carriage return: \"%s\"",
- value);
+ value);
free(buf.data);
return NULL;
}
@@ -509,7 +509,7 @@ AcceptResult(const PGresult *result)
default:
OK = false;
pg_log_error("unexpected PQresultStatus: %d",
- PQresultStatus(result));
+ PQresultStatus(result));
break;
}
@@ -1278,7 +1278,7 @@ PrintQueryResults(PGresult *results)
default:
success = false;
pg_log_error("unexpected PQresultStatus: %d",
- PQresultStatus(results));
+ PQresultStatus(results));
break;
}
@@ -1378,8 +1378,8 @@ SendQuery(const char *query)
char sverbuf[32];
pg_log_warning("The server (version %s) does not support savepoints for ON_ERROR_ROLLBACK.",
- formatPGVersionNumber(pset.sversion, false,
- sverbuf, sizeof(sverbuf)));
+ formatPGVersionNumber(pset.sversion, false,
+ sverbuf, sizeof(sverbuf)));
on_error_rollback_warning = true;
}
else
@@ -1484,7 +1484,7 @@ SendQuery(const char *query)
/* PQTRANS_UNKNOWN is expected given a broken connection. */
if (transaction_status != PQTRANS_UNKNOWN || ConnectionUp())
pg_log_error("unexpected transaction status (%d)",
- transaction_status);
+ transaction_status);
break;
}