In psql \du, separate the role attributes by comma instead of newline,

for an arguably more pleasant display.
This commit is contained in:
Peter Eisentraut 2009-11-11 21:07:41 +00:00
parent e9984c47e9
commit 60cd1f1829

View File

@ -8,7 +8,7 @@
* *
* Copyright (c) 2000-2009, PostgreSQL Global Development Group * Copyright (c) 2000-2009, PostgreSQL Global Development Group
* *
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.230 2009/11/03 10:34:47 petere Exp $ * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.231 2009/11/11 21:07:41 petere Exp $
*/ */
#include "postgres_fe.h" #include "postgres_fe.h"
@ -2238,7 +2238,7 @@ static void
add_role_attribute(PQExpBuffer buf, const char *const str) add_role_attribute(PQExpBuffer buf, const char *const str)
{ {
if (buf->len > 0) if (buf->len > 0)
appendPQExpBufferStr(buf, "\n"); appendPQExpBufferStr(buf, ", ");
appendPQExpBufferStr(buf, str); appendPQExpBufferStr(buf, str);
} }