I'm trying to install pgtap from PGXN on 9.1.2. But...
$ pgxn load pgtap
INFO: best version: pgtap 0.90.0
CREATE EXTENSION
ERROR: syntax error at or near "-" at character 23
STATEMENT: CREATE EXTENSION pgtap-core;
ERROR: syntax error at or near "-"
LINE 1: CREATE EXTENSION pgtap-core;
^
":(
[]s
--
Dickson S. Guedes
mail/xmpp: gue...@guedesoft.net - skype: guediz
http://guedesoft.net - http://www.postgresql.org.br
http://github.net/guedes - twitter: @guediz
> I'm trying to install pgtap from PGXN on 9.1.2. But...
>
>
> $ pgxn load pgtap
> INFO: best version: pgtap 0.90.0
> CREATE EXTENSION
> ERROR: syntax error at or near "-" at character 23
> STATEMENT: CREATE EXTENSION pgtap-core;
> ERROR: syntax error at or near "-"
> LINE 1: CREATE EXTENSION pgtap-core;
> ^
> ":(
Likely a bug in pgxn-client. It should probably just double-quote all the extensions it tries to load; any with dashes won’t work without quoting.
Best,
David
Ah, OK. I'll see if there could be a bug in pgxn-utils' templates like
that too, because I'm not considering this, I think there is no bug with
that, but will poke into that only when I'm back from my vacation.
Best!
Yup: the names are <http://pgxn.org/spec#Term>, so they may be invalid PG names.
Will fix. Open ticket https://github.com/dvarrazzo/pgxnclient/issues/10
-- Daniele