码迷,mamicode.com
首页 > 数据库 > 详细

postgresql设置默认的search_path

时间:2016-08-22 16:12:42      阅读:747      评论:0      收藏:0      [点我收藏+]

标签:

-- Use this to show the current search_path
-- Should return: "$user",public
SHOW search_path;

-- Create another schema
GRANT ALL ON SCHEMA s1 TO s1;

-- To change search_path on a connection-level
SET search_path TO s1;

-- To change search_path on a database-level
ALTER database "testdb" SET search_path TO s1;

 

postgresql设置默认的search_path

标签:

原文地址:http://www.cnblogs.com/ShaYeBlog/p/5795940.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!