Difference between revisions of "\dp"

From wikieduonline
Jump to navigation Jump to search
Line 15: Line 15:
 
  TABLE (and table-like objects) arwdDxt none \dp
 
  TABLE (and table-like objects) arwdDxt none \dp
  
 +
 +
https://www.postgresql.org/docs/9.3/sql-grant.html
 +
<pre>
 +
rolename=xxxx -- privileges granted to a role
 +
        =xxxx -- privileges granted to PUBLIC
 +
 +
            r -- SELECT ("read")
 +
            w -- UPDATE ("write")
 +
            a -- INSERT ("append")
 +
            d -- DELETE
 +
            D -- TRUNCATE
 +
            x -- REFERENCES
 +
            t -- TRIGGER
 +
            X -- EXECUTE
 +
            U -- USAGE
 +
            C -- CREATE
 +
            c -- CONNECT
 +
            T -- TEMPORARY
 +
      arwdDxt -- ALL PRIVILEGES (for tables, varies for other objects)
 +
            * -- grant option for preceding privilege
 +
 +
        /yyyy -- role that granted this privilege
 +
</pre>
  
  

Revision as of 13:50, 23 November 2022

Lists tables, views and sequences with their associated access privileges:

\dp
\dp *.*


\dp
                                                            Access privileges
Schema |                   Name                   |   Type   |              Access privileges              | Column privileges | Policies
--------+------------------------------------------+----------+---------------------------------------------+-------------------+----------


TABLE (and table-like objects)	arwdDxt	none	\dp


https://www.postgresql.org/docs/9.3/sql-grant.html

rolename=xxxx -- privileges granted to a role
        =xxxx -- privileges granted to PUBLIC

            r -- SELECT ("read")
            w -- UPDATE ("write")
            a -- INSERT ("append")
            d -- DELETE
            D -- TRUNCATE
            x -- REFERENCES
            t -- TRIGGER
            X -- EXECUTE
            U -- USAGE
            C -- CREATE
            c -- CONNECT
            T -- TEMPORARY
      arwdDxt -- ALL PRIVILEGES (for tables, varies for other objects)
            * -- grant option for preceding privilege

        /yyyy -- role that granted this privilege


Related

See also

Advertising: