설문조사
PostgreSQL/PPAS 관련 듣고 싶은 교육은


총 게시물 73건, 최근 0 건
   

유저 리스트및 권한 간단히 살펴보기

글쓴이 : PostgresDBA 날짜 : 2014-10-16 (목) 13:18 조회 : 5192
SQL> select * from pg_catalog.pg_user;
    usename     | usesysid | usecreatedb | usesuper | usecatupd | userepl |  passwd  | valuntil | useconfig 
----------------+----------+-------------+----------+-----------+---------+----------+----------+-----------
 postgres       |       10 | t           | t        | t         | t       | ******** | <NULL>   | <NULL>
 orascope_repo  |    24585 | f           | t        | t         | f       | ******** | infinity | <NULL>
 scott          |   102622 | f           | f        | f         | f       | ******** | <NULL>   | <NULL>
(4 rows)

Time: 0.590 ms
postgres@[local]:5432:postgres] 
SQL> \du
                                List of roles
   Role name    |                   Attributes                   | Member of 
----------------+------------------------------------------------+-----------
 orascope_repo  | Superuser                                     +| {}
                | Password valid until infinity                  | 
 postgres       | Superuser, Create role, Create DB, Replication | {}
 scott          |                                                | {}

postgres@[local]:5432:postgres] 
SQL> 

   

postgresdba.com