Re: BUG #7820: Extension uuid-ossp cannot be installed on Windows - getting syntax error - Mailing list pgsql-bugs

From Marc Balmer
Subject Re: BUG #7820: Extension uuid-ossp cannot be installed on Windows - getting syntax error
Date
Msg-id 342D272E-D844-4ABD-9C23-637626B62E7A@msys.ch
Whole thread Raw
In response to BUG #7820: Extension uuid-ossp cannot be installed on Windows - getting syntax error  (Jan-Peter.Seifert@gmx.de)
Responses Re: BUG #7820: Extension uuid-ossp cannot be installed on Windows - getting syntax error
List pgsql-bugs
Am 22.01.2013 um 14:31 schrieb Jan-Peter.Seifert@gmx.de:

> The following bug has been logged on the website:
>=20
> Bug reference:      7820
> Logged by:          Jan-Peter Seifert
> Email address:      Jan-Peter.Seifert@gmx.de
> PostgreSQL version: 9.1.7
> Operating system:   Windows 7 64-bit
> Description:       =20
>=20
> The statement:
> 'CREATE EXTENSION uuid-ossp'
>=20
> just gives me a syntax error:
>=20
> ERROR:  syntax error at or near "-"
> LINE 1: CREATE EXTENSION uuid-ossp
>                           ^
> ********** Fehler **********
>=20
> ERROR: syntax error at or near "-"
> SQL Status:42601
> Zeichen:22
>=20
> Obviously "CREATE EXTENSION" expects underscores instead of hyphens.

no.  Your syntax is wrong.

>=20
> I had to replace the hyphen in file names and in the scripts to make =
the
> module work.
>=20

That is the wrong "fix".  The hyphen has a meaning in SQL.  So you need =
to properly enclose uuid-ossp in quotes.

pgsql-bugs by date:

Previous
From: Vik Reykja
Date:
Subject: Re: BUG #7820: Extension uuid-ossp cannot be installed on Windows - getting syntax error
Next
From: Pius Chan
Date:
Subject: Re: BUG #7819: missing chunk number 0 for toast value 1235919 in pg_toast_35328