1. 创建用户 create user dev_user with password ‘***’ 2. 创建数据库 create database dev_pg owner dev_user 3. 切换用户 切换到dev_user 4. 创建schema create schema dev_schema authorization dev_user 5. 设置用户默认schema alter user dev_user set search_path to dev_schema;