Re: why two dashes in extension load files - Mailing list pgsql-hackers

From Tom Lane
Subject Re: why two dashes in extension load files
Date
Msg-id 25984.1297702478@sss.pgh.pa.us
Whole thread Raw
In response to Re: why two dashes in extension load files  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: why two dashes in extension load files  ("David E. Wheeler" <david@kineticode.com>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> On mån, 2011-02-14 at 10:13 -0500, Tom Lane wrote:
>> Peter Eisentraut <peter_e@gmx.net> writes:
>>> Why do the extension load files need two dashes, like xml2--1.0.sql?
>>> Why isn't one enough?

>> Because we'd have to forbid dashes in extension name and version
>> strings.  This was judged to be a less annoying solution.  See
>> yesterday's discussion.

> I'm not convinced.  There was nothing in that discussion why any
> particular character would have to be allowed in a version number.

Well, there's already a counterexample in the current contrib stuff:
uuid-ossp.  We could rename that to uuid_ossp of course, but it's
not clear to me that there's consensus for forbidding dashes here.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Extensions vs PGXS' MODULE_PATHNAME handling
Next
From: Marko Kreen
Date:
Subject: Re: why two dashes in extension load files