diff --git a/doc/src/sgml/ref/grant.sgml b/doc/src/sgml/ref/grant.sgml
index 14013c50ad2833ff7bfe94737beb9143fc2a4c1e..c80a33c507441e1af4c6cd30b1306c13c0dc4262 100644
--- a/doc/src/sgml/ref/grant.sgml
+++ b/doc/src/sgml/ref/grant.sgml
@@ -1,5 +1,5 @@
@@ -419,7 +419,7 @@ GRANT role [, ...] TO
=> \z mytable
- Access privileges for database "lusitania"
+ Access privileges
Schema | Name | Type | Access privileges
--------+---------+-------+----------------------
public | mytable | table | miriam=arwdxt/miriam
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index dff3cf6cd5015713a596856f6ee96873c9157c74..b571db9fd81c8577937e788cdf6566fa8960d2f1 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -8,7 +8,7 @@
*
* 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"
@@ -544,8 +544,7 @@ permissionsList(const char *pattern)
}
myopt.nullPrint = NULL;
- printfPQExpBuffer(&buf, _("Access privileges for database \"%s\""),
- PQdb(pset.db));
+ printfPQExpBuffer(&buf, _("Access privileges"));
myopt.title = buf.data;
myopt.trans_headers = true;
myopt.trans_columns = trans_columns;
diff --git a/src/test/regress/expected/dependency.out b/src/test/regress/expected/dependency.out
index 6f62ce70108eec8ae8dbda006d630a9dd321cc08..4c6a6af30423744687a4daa39cef988ebdc99e15 100644
--- a/src/test/regress/expected/dependency.out
+++ b/src/test/regress/expected/dependency.out
@@ -68,7 +68,7 @@ NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "deptest_pkey" fo
GRANT ALL ON deptest1 TO regression_user2;
RESET SESSION AUTHORIZATION;
\z deptest1
- Access privileges for database "regression"
+ Access privileges
Schema | Name | Type | Access privileges
--------+----------+-------+------------------------------------------------
public | deptest1 | table | regression_user0=arwdxt/regression_user0
@@ -79,7 +79,7 @@ RESET SESSION AUTHORIZATION;
DROP OWNED BY regression_user1;
-- all grants revoked
\z deptest1
- Access privileges for database "regression"
+ Access privileges
Schema | Name | Type | Access privileges
--------+----------+-------+------------------------------------------
public | deptest1 | table | regression_user0=arwdxt/regression_user0