postgresql中的search_path
来源:互联网 发布:电竞耳机 知乎 编辑:程序博客网 时间:2024/06/05 05:18
search_path类似于linux中的path环境变量。
postgres=# show search_path;
search_path
-----------------
"$user", public
(1 row)
postgres=# show search_path;
search_path
-----------------
"$user", public
(1 row)
默认值是$user,public,意思就是当以某个用户登录到数据库的时候,默认就是先查找和登录用户同名的schema,再查找public。
修改search_path:
postgres=# set search_path = schema_name1,schema_name2,...;
或者
postgres=# set search_path to schema_name1,schema_name2,...;
恢复:
postgres=# set search_path = "$user", public;
阅读全文
0 0
- postgresql中的search_path
- postgresql中的search_path
- PostGreSQL Search_path
- Postgresql设置search_path
- 设置postgresql的search_path
- PostgreSQL和Kingbase中设置search_path
- 关于postgreSQL(PG)的search_path参数功能及效果
- PostgreSQL中的中文排序
- postgresql 中的|| 及''
- postgreSQL 中的 Lock
- postgresql中的spin lock
- PostgreSQL中的模糊查询
- postgresql 中的 clog
- postgresql中的pg_cancel_backend
- postgresql中的Background Writer
- postgresql中的toast表
- postgresql中的checkpoint_completion_target
- postgresql中的主要进程
- poj1734 Sightseeing trip(Floyd求最小环)
- [HDU] 3853 LOOPS 期望dp入门
- SOUI之DIY: 自定义控件和消息实现
- spring——BeanFactory和applicationContext
- CentOS7安装aapt
- postgresql中的search_path
- Android改变标题栏的透明度
- https的网站用了百度分享后网站在浏览器中不安全解决方法
- RN es6的几种常用用法
- EXCEL中插入公式返回值仍是公式的解决方法
- 在查询结果后的最后一行加上合计,不用 union all,使用GROUP BY ROLLUP grouping
- activiti5入门(一)
- C# ListView选中行事件
- Java中的equals和hashCode方法详解