在Amazon RDS上安装PostGIS(Installing PostGIS on Amazon RDS)
我正在尝试从AWS文档中遵循本指南: http : //docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.PostgreSQL.CommonDBATasks.html#Appendix.PostgreSQL.CommonDBATasks.PostGIS
在“步骤2:加载PostGIS扩展”中,在它显示的文档
(4 rows)
但有三行。 到目前为止,我自己运行相同的命令,我看到四行,文档中缺少的行是tiger_data
。 在第3步中,tiger_data
所有权tiger_data
应该给rds_superuser?在“步骤4:将对象的所有权转移到rds_superuser角色”中,我使用文档中提供的查询时出现语法错误,我不知道该怎么做:
postgres=> CREATE FUNCTION exec(text) returns text language plpgsql volatile AS $f$ BEGIN EXECUTE $1; RETURN $1; END; $f$; CREATE FUNCTION postgres=> SELECT exec('ALTER TABLE ' || quote_ident(s.nspname) || '.' || quote_ident(s.relname) || ' OWNER TO rds_superuser,') postgres-> FROM ( postgres(> SELECT nspname, relname postgres(> FROM pg_class c JOIN pg_namespace n ON (c.relnamespace = n.oid) postgres(> WHERE nspname in ('tiger','topology') AND postgres(> relkind IN ('r','S','v') ORDER BY relkind = 'S') postgres-> s; ERROR: syntax error at end of input LINE 1: ALTER TABLE tiger.loader_variables OWNER TO rds_superuser, ^ QUERY: ALTER TABLE tiger.loader_variables OWNER TO rds_superuser, CONTEXT: PL/pgSQL function exec(text) line 1 at EXECUTE statement
I am trying to follow this guide from AWS docs: http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.PostgreSQL.CommonDBATasks.html#Appendix.PostgreSQL.CommonDBATasks.PostGIS
On "Step 2: Load the PostGIS extensions", in the docs it shows
(4 rows)
but there are three rows there. Running the same commands myself up to that point, I see four rows, and the row that was missing from the docs istiger_data
. In Step 3, should ownership oftiger_data
be given to rds_superuser as well?In "Step 4: Transfer ownership of the objects to the rds_superuser role", I'm getting a syntax error from using the query provided in the docs and I don't know what to do about this:
postgres=> CREATE FUNCTION exec(text) returns text language plpgsql volatile AS $f$ BEGIN EXECUTE $1; RETURN $1; END; $f$; CREATE FUNCTION postgres=> SELECT exec('ALTER TABLE ' || quote_ident(s.nspname) || '.' || quote_ident(s.relname) || ' OWNER TO rds_superuser,') postgres-> FROM ( postgres(> SELECT nspname, relname postgres(> FROM pg_class c JOIN pg_namespace n ON (c.relnamespace = n.oid) postgres(> WHERE nspname in ('tiger','topology') AND postgres(> relkind IN ('r','S','v') ORDER BY relkind = 'S') postgres-> s; ERROR: syntax error at end of input LINE 1: ALTER TABLE tiger.loader_variables OWNER TO rds_superuser, ^ QUERY: ALTER TABLE tiger.loader_variables OWNER TO rds_superuser, CONTEXT: PL/pgSQL function exec(text) line 1 at EXECUTE statement
原文:https://stackoverflow.com/questions/34925400
最满意答案
您好,就是sqlserver,只是读音 习惯为CQ server,希望能帮上您
其他回答
可以私聊我~
相关问答
更多-
Oracle、SQL Server及mysql三者有什么区别[2023-12-22]
区别如下: 1、Oracle和SQL Server是商业收费的,而MySql是开源免费的; 2、Oracle和MySql是甲骨文的产品,SQL Server是微软的产品; 3、Oracle和IBM DB2都是超大型关系数据库,SQL Server是大型关系数据库,而MySql是中型关系数据库; 4、Oracle比SQL Server的安全性高,而SQL Server又比MySql的安全性高。 等等... -
傻傻的问一下ERP企业管理软件里的ORACLE和ORACLE数据库有什么区别和联系?[2022-08-14]
如果你不清楚什么叫数据库,什么叫ERP,那么建议你先学习相关知识。 如果你是个计算机业内人士,那么解释起来就很简单了。 首先 Oracle 是一个公司的名字,和 IBM、Microsoft 一样。 其次,Oracle ERP 是一个 Oracle 公司开发的一款 ERP 软件,而 Oracle 数据库是 Oracle 公司开发的一款数据库软件。 这里需要说明的是,Oracle 与 IBM 等企业不同,它的各款产品并没有特别的商品名称。 例如 IBM 开发的database 商品名称为DB2,开发的 appl ... -
SAP, Oracle, 数据库有什么区别?[2023-01-24]
我来: 1.SAP,ORACLE都是企业资源计划系统(ERP).什么是ERP?你可以上网找一下.简单来说,就是和公司有关的东西都能在电脑里查到并要作什么事都作好计划.而且连成一个整体.注意,是全部的东西.考勤,工资,财务,进出货,客户等等.是在同一个系统.(网上其他介绍更专业但我这个很好懂) 2.SAP是德国的公司,在ERP方面是绝对的领导者.像微软的WINDOWS一样,SAP的R/3系统是ERP里最厉害的.是世界第三大的软件商(第一和第二是谁?).他的用户大多都是世界五百强(80%).比如宝马,奔驰,麦当 ... -
在oracle中, date datetime有什么区别啊[2021-09-12]
date datetime区别如下: date :表示年月日,如YY-MM-DD datetime: 表示年月日和时间信息,如YY-MM-DD HH:MM:SS 时间范围不同如下: date -- > '1000-01-01' to '9999-12-31'. datetime --> '1000-01-01 00:00:00' to '9999-12-31 23:59:59'. -
SAP, Oracle, 数据库有什么区别?[2022-12-13]
我来: 1.SAP,ORACLE都是企业资源计划系统(ERP).什么是ERP?你可以上网找一下.简单来说,就是和公司有关的东西都能在电脑里查到并要作什么事都作好计划.而且连成一个整体.注意,是全部的东西.考勤,工资,财务,进出货,客户等等.是在同一个系统.(网上其他介绍更专业但我这个很好懂) 2.SAP是德国的公司,在ERP方面是绝对的领导者.像微软的WINDOWS一样,SAP的R/3系统是ERP里最厉害的.是世界第三大的软件商(第一和第二是谁?).他的用户大多都是世界五百强(80%).比如宝马,奔驰,麦当 ... -
CQ server是什么语言,与sqlserver ,oracle 有什么区别和联系[2022-05-28]
您好,就是sqlserver,只是读音 习惯为CQ server,希望能帮上您 -
php break后面跟的数字是什么意思[2022-04-15]
区别 -
CQ:模板 cq:template的类型是nt:unstructured ,它允许你定义一个包含一组属性和子项的复杂节点。 这是您创建的作为组件定义的子节点的节点。 只要您从sidekick中删除组件的新实例,此内容将用作默认值。 这是一个例子。 componentA有一个叫做cq:template的子类nt:unstructured类型的cq:template 。 如果您需要聚合某些属性,则cq:template节点可以具有多个属性,甚至可以将其他节点作为子节点。 这是CRXDE的外观 CQ:的templ ...
-
假设您在JCR中有以下内容: - / etc / clientlibs / grid - / etc / clientlibs / forms - / etc / clientlibs / tables - / etc / clientlibs / tables / responsive - / etc / clientlibs / tables / inverse 类别应该列入不相关的客户端库列表。 例如如果通过浏览器从DAM管理页面上传到5.4.0实例,我建议分析它所做的HTTP请求,以便从Flex客户端重现相同的请求。 5.4.0和5.5.0 HTTP API之间可能存在细微差别,这可以解释这一点。 If uploading from the DAM admin page via a browser works on the 5.4.0 instance, I would suggest analysing the HTTP request that this makes, to reproduce t ...
相关文章
更多- Amazon Web Services(AWS)概述
- 高性能Web应用打造攻略:扩展过程中20个最大的绊脚石
- 如何打造高性能Web应用
- 如何使用vagrant在虚拟机安装Hadoop集群
- Prestashop 问题解决开发
- 安装elasticsearch
- IT企业利用云计算平台Hadoop的10种方式
- Apache Hadoop初体验
- Apache Mahout:适合所有人的可扩展机器学习框架
- 用 Linux 和 Apache Hadoop 进行云计算
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)