From 60cd1f182943448eeb662b0f73ecb985ad9cc26e Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 11 Nov 2009 21:07:41 +0000 Subject: [PATCH] In psql \du, separate the role attributes by comma instead of newline, for an arguably more pleasant display. --- src/bin/psql/describe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index 3fd2b2a971..8fd456fe34 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -8,7 +8,7 @@ * * 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" @@ -2238,7 +2238,7 @@ static void add_role_attribute(PQExpBuffer buf, const char *const str) { if (buf->len > 0) - appendPQExpBufferStr(buf, "\n"); + appendPQExpBufferStr(buf, ", "); appendPQExpBufferStr(buf, str); }