lens_mobapp_trace=# create role lens with login; NOTICE: resource queue required -- using default resource queue "pg_default" CREATE ROLE lens_mobapp_trace=# alter role lens with password ‘nbs2010‘; ALTER ROLE lens_mobapp_trace=# grant all on database lens_mobapp_trace to lens; GRANT lens_mobapp_trace=# \h create schema Command: CREATE SCHEMA Description: define a new schema Syntax: CREATE SCHEMA schemaname [ AUTHORIZATION username ] [ schema_element [ ... ] ] CREATE SCHEMA AUTHORIZATION username [ schema_element [ ... ] ] lens_mobapp_trace=# create schema tingyun_trace AUTHORIZATION lens; CREATE SCHEMA lens_mobapp_trace=# alter role lens set search_path=tingyun_trace; ALTER ROLE
本文出自 “勇敢向前,坚决向左” 博客,谢绝转载!
原文地址:http://quenlang.blog.51cto.com/4813803/1844798