PostgreSQL 데이터베이스 소유자 변경

1 개요[ | ]

PostgreSQL 데이터베이스 소유자 변경
ALTER DATABASE 디비명 OWNER TO 계정명

2 실습[ | ]

template1=# \l hello
                              List of databases
 Name  |  Owner   | Encoding |   Collate   |    Ctype    | Access privileges 
-------+----------+----------+-------------+-------------+-------------------
 hello | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
(1 row)
template1=# ALTER DATABASE hello OWNER TO testuser;
ALTER DATABASE
template1=# \l hello
                              List of databases
 Name  |  Owner   | Encoding |   Collate   |    Ctype    | Access privileges 
-------+----------+----------+-------------+-------------+-------------------
 hello | testuser | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
(1 row)

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}