diff options
author | Bruce Momjian | 2014-08-20 17:03:58 +0000 |
---|---|---|
committer | Bruce Momjian | 2014-08-20 17:04:45 +0000 |
commit | 7567d94910c100a28a79122e86297cd7a4c90df6 (patch) | |
tree | d55eee11e8634f4529d37d4376fa9db40f63c673 /contrib/pg_upgrade/util.c | |
parent | 02587dcddc2cb5d9f7a17cb0281d168f5a0d6297 (diff) |
pg_upgrade: adjust logging to use QUERY_ALLOC lengths
Allows the logging to print the entire text of failed queries, rather
than a truncated version.
Diffstat (limited to 'contrib/pg_upgrade/util.c')
-rw-r--r-- | contrib/pg_upgrade/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pg_upgrade/util.c b/contrib/pg_upgrade/util.c index 3b94057696d..79da8d7920e 100644 --- a/contrib/pg_upgrade/util.c +++ b/contrib/pg_upgrade/util.c @@ -86,7 +86,7 @@ __attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 0))) void pg_log_v(eLogType type, const char *fmt, va_list ap) { - char message[MAX_STRING]; + char message[QUERY_ALLOC]; vsnprintf(message, sizeof(message), fmt, ap); |