diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-14 18:49:30 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-14 18:49:30 +0000 |
commit | 84ccf7212cbc3d655dbe79a3ecd602d3dc39feba (patch) | |
tree | 4a8d48bf004a532427b5d1fe52e1e50a1aada4ab /src/bin/psql/command.c | |
parent | f60d176a5e52e3f61934cd65e8f02aa2b995cb74 (diff) |
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).
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 824f2321035..b46c0f9574a 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -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: |