1 개요[ | ]
- PostgreSQL List of databases
- PostgreSQL SHOW DATABASES
- PostgreSQL 데이터베이스 목록 조회
- 목록 조회
\list
또는\l
Console
Copy
template1=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
(3 rows)
- 목록 상세조회
\list+
또는\lt+
Console
Copy
template1=# \l+
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges | Size | Tablespace | Description
-----------+----------+----------+-------------+-------------+-----------------------+---------+------------+--------------------------------------------
postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | | 6298 kB | pg_default | default administrative connection database
template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +| 6185 kB | pg_default | unmodifiable empty database
| | | | | postgres=CTc/postgres | | |
template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +| 6298 kB | pg_default | default template for new databases
| | | | | postgres=CTc/postgres | | |
(3 rows)
2 같이 보기[ | ]
- PostgreSQL 데이터베이스 생성
- PostgreSQL 데이터베이스 삭제
- PostgreSQL 데이터베이스 소유자 변경
- PostgreSQL 테이블 목록 조회
- psql 명령어
- SHOW DATABASES
3 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.