1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-23 14:01:44 +03:00

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.
This commit is contained in:
Bruce Momjian
2014-08-20 13:03:58 -04:00
parent 02587dcddc
commit 7567d94910
2 changed files with 6 additions and 6 deletions

View File

@ -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);