mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 23:56:58 +03:00
Don't print the name of the database in psql \z.
This commit is contained in:
parent
c8dbbb194a
commit
b11c1876ed
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$PostgreSQL: pgsql/doc/src/sgml/ref/grant.sgml,v 1.69 2008/05/28 00:45:40 tgl Exp $
|
$PostgreSQL: pgsql/doc/src/sgml/ref/grant.sgml,v 1.70 2008/07/03 15:59:55 petere Exp $
|
||||||
PostgreSQL documentation
|
PostgreSQL documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -419,7 +419,7 @@ GRANT <replaceable class="PARAMETER">role</replaceable> [, ...] TO <replaceable
|
|||||||
to obtain information about existing privileges, for example:
|
to obtain information about existing privileges, for example:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
=> \z mytable
|
=> \z mytable
|
||||||
Access privileges for database "lusitania"
|
Access privileges
|
||||||
Schema | Name | Type | Access privileges
|
Schema | Name | Type | Access privileges
|
||||||
--------+---------+-------+----------------------
|
--------+---------+-------+----------------------
|
||||||
public | mytable | table | miriam=arwdxt/miriam
|
public | mytable | table | miriam=arwdxt/miriam
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
|
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.174 2008/07/03 03:37:17 tgl Exp $
|
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.175 2008/07/03 15:59:55 petere Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres_fe.h"
|
#include "postgres_fe.h"
|
||||||
|
|
||||||
@ -544,8 +544,7 @@ permissionsList(const char *pattern)
|
|||||||
}
|
}
|
||||||
|
|
||||||
myopt.nullPrint = NULL;
|
myopt.nullPrint = NULL;
|
||||||
printfPQExpBuffer(&buf, _("Access privileges for database \"%s\""),
|
printfPQExpBuffer(&buf, _("Access privileges"));
|
||||||
PQdb(pset.db));
|
|
||||||
myopt.title = buf.data;
|
myopt.title = buf.data;
|
||||||
myopt.trans_headers = true;
|
myopt.trans_headers = true;
|
||||||
myopt.trans_columns = trans_columns;
|
myopt.trans_columns = trans_columns;
|
||||||
|
@ -68,7 +68,7 @@ NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "deptest_pkey" fo
|
|||||||
GRANT ALL ON deptest1 TO regression_user2;
|
GRANT ALL ON deptest1 TO regression_user2;
|
||||||
RESET SESSION AUTHORIZATION;
|
RESET SESSION AUTHORIZATION;
|
||||||
\z deptest1
|
\z deptest1
|
||||||
Access privileges for database "regression"
|
Access privileges
|
||||||
Schema | Name | Type | Access privileges
|
Schema | Name | Type | Access privileges
|
||||||
--------+----------+-------+------------------------------------------------
|
--------+----------+-------+------------------------------------------------
|
||||||
public | deptest1 | table | regression_user0=arwdxt/regression_user0
|
public | deptest1 | table | regression_user0=arwdxt/regression_user0
|
||||||
@ -79,7 +79,7 @@ RESET SESSION AUTHORIZATION;
|
|||||||
DROP OWNED BY regression_user1;
|
DROP OWNED BY regression_user1;
|
||||||
-- all grants revoked
|
-- all grants revoked
|
||||||
\z deptest1
|
\z deptest1
|
||||||
Access privileges for database "regression"
|
Access privileges
|
||||||
Schema | Name | Type | Access privileges
|
Schema | Name | Type | Access privileges
|
||||||
--------+----------+-------+------------------------------------------
|
--------+----------+-------+------------------------------------------
|
||||||
public | deptest1 | table | regression_user0=arwdxt/regression_user0
|
public | deptest1 | table | regression_user0=arwdxt/regression_user0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user