提交 60cd1f18 编写于 作者: P Peter Eisentraut

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

for an arguably more pleasant display.
上级 e9984c47
...@@ -8,7 +8,7 @@ ...@@ -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 ...@@ -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);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册