mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	In psql \du, separate the role attributes by comma instead of newline,
for an arguably more pleasant display.
This commit is contained in:
		@@ -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);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user