mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Fix up tab completion for ROLEs and add some more completion logic for
other stuff; change \du and \dg to be role-aware (Stefan Kaltenbrunner). Also make tab completion fetch the list of GUC variables from pg_settings instead of having a hard-wired copy of the list (Tom Lane).
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.151 2005/07/25 17:17:41 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.152 2005/08/14 18:49:30 tgl Exp $
|
||||
*/
|
||||
#include "postgres_fe.h"
|
||||
#include "command.h"
|
||||
@ -338,7 +338,8 @@ exec_command(const char *cmd,
|
||||
success = describeFunctions(pattern, show_verbose);
|
||||
break;
|
||||
case 'g':
|
||||
success = describeGroups(pattern);
|
||||
/* no longer distinct from \du */
|
||||
success = describeRoles(pattern);
|
||||
break;
|
||||
case 'l':
|
||||
success = do_lo_list();
|
||||
@ -363,7 +364,7 @@ exec_command(const char *cmd,
|
||||
success = listTables(&cmd[1], pattern, show_verbose);
|
||||
break;
|
||||
case 'u':
|
||||
success = describeUsers(pattern);
|
||||
success = describeRoles(pattern);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user