[GENERAL] Custom type literal conversion

2014-09-24 Thread Chris Bandy
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 a way to implement this type's literal conversion without

Re: [GENERAL] Custom type literal conversion

2014-09-24 Thread hubert depesz lubaczewski
On Wed, Sep 24, 2014 at 2:45 PM, Chris Bandy bandy.ch...@gmail.com 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

Re: [GENERAL] Custom type literal conversion

2014-09-24 Thread Chris Bandy
On Wed, Sep 24, 2014 at 8:40 AM, hubert depesz lubaczewski dep...@gmail.com wrote: On Wed, Sep 24, 2014 at 2:45 PM, Chris Bandy bandy.ch...@gmail.com 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