Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60cd1f1

Browse files
committed
In psql \du, separate the role attributes by comma instead of newline,
for an arguably more pleasant display.
1 parent e9984c4 commit 60cd1f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/describe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
1010
*
11-
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.230 2009/11/03 10:34:47 petere Exp $
11+
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.231 2009/11/11 21:07:41 petere Exp $
1212
*/
1313
#include "postgres_fe.h"
1414

@@ -2238,7 +2238,7 @@ static void
22382238
add_role_attribute(PQExpBuffer buf, const char *const str)
22392239
{
22402240
if (buf->len > 0)
2241-
appendPQExpBufferStr(buf, "\n");
2241+
appendPQExpBufferStr(buf, ", ");
22422242

22432243
appendPQExpBufferStr(buf, str);
22442244
}

0 commit comments

Comments
 (0)