Re: [GENERAL] Custom type literal conversion

2014-09-24 Thread Chris Bandy
On Wed, Sep 24, 2014 at 8:40 AM, hubert depesz lubaczewski wrote: > On Wed, Sep 24, 2014 at 2:45 PM, Chris Bandy > wrote: > >> I would like to create a new type for version strings that sorts >> numerically. The composite type below was quick to write and does not >> require superuser privileges

Re: [GENERAL] Custom type literal conversion

2014-09-24 Thread hubert depesz lubaczewski
On Wed, Sep 24, 2014 at 2:45 PM, Chris Bandy wrote: > I would like to create a new type for version strings that sorts > numerically. The composite type below was quick to write and does not > require superuser privileges. However, it doesn't respond to type casts the > way I'd like. > > Is there