Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
b11c1876
Commit
b11c1876
authored
Jul 03, 2008
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't print the name of the database in psql \z.
parent
c8dbbb19
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
doc/src/sgml/ref/grant.sgml
doc/src/sgml/ref/grant.sgml
+2
-2
src/bin/psql/describe.c
src/bin/psql/describe.c
+2
-3
src/test/regress/expected/dependency.out
src/test/regress/expected/dependency.out
+2
-2
No files found.
doc/src/sgml/ref/grant.sgml
View file @
b11c1876
<!--
$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
-->
...
...
@@ -419,7 +419,7 @@ GRANT <replaceable class="PARAMETER">role</replaceable> [, ...] TO <replaceable
to obtain information about existing privileges, for example:
<programlisting>
=> \z mytable
Access privileges for database "lusitania"
Access privileges
Schema | Name | Type | Access privileges
--------+---------+-------+----------------------
public | mytable | table | miriam=arwdxt/miriam
...
...
src/bin/psql/describe.c
View file @
b11c1876
...
...
@@ -8,7 +8,7 @@
*
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.17
4 2008/07/03 03:37:17 tgl
Exp $
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.17
5 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
;
...
...
src/test/regress/expected/dependency.out
View file @
b11c1876
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment