瀚高数据库建库语句

# 第一步

# psql 第一个参数是数据库 第二个是用户. 

# 为了简化期间,建议用户,表空间,架构设置相同.

psql highgo   sysdba

create user myapp2206 password 'Test@20131127';

create database myapp2206 OWNER myapp2206 ;

# 第二步

psql myapp2206 myapp2206 

create schema myapp2206 ;

# 第三步

psql myapp2206 sysdba

update pg_cast set castcontext = 'i' where castsource = 'integer'::regtype and casttarget = 'boolean'::regtype;