Re: [HACKERS] Dash in Extension Names

2011-11-10 Thread David E. Wheeler
On Nov 10, 2011, at 9:45 PM, Itagaki Takahiro wrote:

>> Parser error?
> 
> You need double-quotes around the name:
> =# CREATE EXTENSION "uuid-ossp";
> CREATE EXTENSION

Ah! Okay, thank you!

David


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


Re: [HACKERS] Dash in Extension Names

2011-11-10 Thread Itagaki Takahiro
On Fri, Nov 11, 2011 at 14:40, David E. Wheeler  wrote:
> one might use "-" in the name itself, but probably not "--" -- it seems that 
> the dash is not actually allowed:
>
>    create extension pgtap-core;
>    ERROR:  syntax error at or near "-"
>    LINE 1: create extension pgtap-core;
>
> Parser error?

You need double-quotes around the name:
=# CREATE EXTENSION "uuid-ossp";
CREATE EXTENSION

-- 
Itagaki Takahiro

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


[HACKERS] Dash in Extension Names

2011-11-10 Thread David E. Wheeler
Hackers,

So after Tom made "--" the separator between an extension name and the version 
information in extension file names -- because one might use "-" in the name 
itself, but probably not "--" -- it seems that the dash is not actually allowed:

create extension pgtap-core;
ERROR:  syntax error at or near "-"
LINE 1: create extension pgtap-core;

Parser error?

Thanks,

David



-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers