Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Postgresql create extension fails

Tags:

postgresql

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: Syntaxfehler bei »« ZEILE 1: create extension util;

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

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

Any hints ? Rolf

like image 911
user1423449 Avatar asked Feb 15 '23 15:02

user1423449


1 Answers

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.

like image 131
theory Avatar answered Feb 23 '23 10:02

theory