简体   繁体   English

为多个架构创建Postgresql扩展

[英]Create Postgresql Extension for Multiple Schema

I Work with Postgresql 9.2 and I try to make Postgis 2.x extension for two schemas 我使用Postgresql 9.2,我尝试为两个模式制作Postgis 2.x扩展

My code is 我的代码是

create extension postgis schema public 

it is working but I want to create extension for two schemas eg public,second ... 它正在工作,但我想为两个模式创建扩展,例如public,second ......

Can anibody help me? anibody可以帮助我吗?

According to http://www.postgresql.org/docs/9.2/static/sql-createextension.html 根据http://www.postgresql.org/docs/9.2/static/sql-createextension.html

Extension itself is not considered to be within any schema, but it can save objects within specified schema. 扩展本身不被视为在任何模式中,但它可以保存指定模式中的对象。 Specifying more than one schema is an unrealizable. 指定多个模式是不可实现的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM