PostrgreSQL 사용자 생성, 코멘트 확인, 인덱스 사용량 확인
create user my_user with encrypted password 'my_password'; create database my_database; grant all privileges on database my_database to my_user; 코멘트 확인SELECT PS.RELNAME AS TABLE_NAME ,PA.ATTNAME AS COLUMN_NAME ,PD.DESCRIPTION AS COLUMN_COMMENT FROM PG_STAT_ALL_TABLES PS ,PG_DESCRIPTION PD ,PG_ATTRIBUTE PA WHERE PS.SCHEMANAME = (SELECT SCHEMANAME FROM PG_STAT_USER_TABLES WHERE RELNAME = 'user_inf..
Database
2019. 1. 21. 16:13