标签:arch 同名 错误 postgre 建表 Owner arc postgres sea
1set search_path=CCC,"$USER",AAA,BBB;
"
PostgreSQL首先会查询和当前用户同名的schema,如果无对应schema,则会继续在路径中的下一个schema AAA查询..............以此类推。
2
当新建一个schema,在这个schema下创建表。但是如果该表所在的模式并不在search_path中,那么查询时会产生错误
3 默认是谁创建的schema,owner就是谁,当然也可以指定
create schema lych authorization lych_owner;
标签:arch 同名 错误 postgre 建表 Owner arc postgres sea
原文地址:https://blog.51cto.com/2012ivan/2500177