PostgreSQL创建扩展失败 [英] Postgresql create extension fails

查看:277
本文介绍了PostgreSQL创建扩展失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用扩展程序,到目前为止没有任何问题。
现在我创建一个新的,当我调用
时创建扩展程序util;我在PG 9.2中获得了

I'm using extensions and had no problems so far. Now I create a new one, and when I call create extension util; I get in PG 9.2:

$ create extension util;
FEHLER:语法fehler bei»«
ZEILE 1:创建扩展实用程序;

$ create extension util; FEHLER: Syntaxfehler bei »« ZEILE 1: create extension util;

并在PG 9.1中:
CREATE EXTENSION util;
错误:重新创建
时或附近的语法错误第1行:CREATE EXTENSION util;

and in PG 9.1 : CREATE EXTENSION util; ERROR: syntax error at or near "create" LINE 1: CREATE EXTENSION util;

我有一个util--1.0.sql ,即使该文件为空,我也会收到错误消息。
我的util.control看起来像这样:

I have an util--1.0.sql , and even when this file is empty I get the error. my util.control looks like this:

comment ='Hilfsfunktionen für Updateskripte'
default_version = '1.0'
schema=system

有什么提示吗?
Rolf

Any hints ? Rolf

推荐答案

我很确定您要连接的服务器既不是9.1也不是9.2。连接到它并运行 SELECT version(); 进行确认。

I'm pretty sure that the server you're connecting to is neither 9.1 nor 9.2. Connect to it and run SELECT version(); to confirm.

这篇关于PostgreSQL创建扩展失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆