Skip to content

Commit b11c187

Browse files
committed
Don't print the name of the database in psql \z.
1 parent c8dbbb1 commit b11c187

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

doc/src/sgml/ref/grant.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/grant.sgml,v 1.69 2008/05/28 00:45:40 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/grant.sgml,v 1.70 2008/07/03 15:59:55 petere Exp $
33
PostgreSQL documentation
44
-->
55

@@ -419,7 +419,7 @@ GRANT <replaceable class="PARAMETER">role</replaceable> [, ...] TO <replaceable
419419
to obtain information about existing privileges, for example:
420420
<programlisting>
421421
=&gt; \z mytable
422-
Access privileges for database "lusitania"
422+
Access privileges
423423
Schema | Name | Type | Access privileges
424424
--------+---------+-------+----------------------
425425
public | mytable | table | miriam=arwdxt/miriam

src/bin/psql/describe.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
1010
*
11-
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.174 2008/07/03 03:37:17 tgl Exp $
11+
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.175 2008/07/03 15:59:55 petere Exp $
1212
*/
1313
#include "postgres_fe.h"
1414

@@ -544,8 +544,7 @@ permissionsList(const char *pattern)
544544
}
545545

546546
myopt.nullPrint = NULL;
547-
printfPQExpBuffer(&buf, _("Access privileges for database \"%s\""),
548-
PQdb(pset.db));
547+
printfPQExpBuffer(&buf, _("Access privileges"));
549548
myopt.title = buf.data;
550549
myopt.trans_headers = true;
551550
myopt.trans_columns = trans_columns;

src/test/regress/expected/dependency.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "deptest_pkey" fo
6868
GRANT ALL ON deptest1 TO regression_user2;
6969
RESET SESSION AUTHORIZATION;
7070
\z deptest1
71-
Access privileges for database "regression"
71+
Access privileges
7272
Schema | Name | Type | Access privileges
7373
--------+----------+-------+------------------------------------------------
7474
public | deptest1 | table | regression_user0=arwdxt/regression_user0
@@ -79,7 +79,7 @@ RESET SESSION AUTHORIZATION;
7979
DROP OWNED BY regression_user1;
8080
-- all grants revoked
8181
\z deptest1
82-
Access privileges for database "regression"
82+
Access privileges
8383
Schema | Name | Type | Access privileges
8484
--------+----------+-------+------------------------------------------
8585
public | deptest1 | table | regression_user0=arwdxt/regression_user0

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy