Re: Sorting by numerical order - Mailing list pgsql-general

From Tom Lane
Subject Re: Sorting by numerical order
Date
Msg-id 11353.1079313594@sss.pgh.pa.us
Whole thread Raw
In response to Re: Sorting by numerical order  (Mike Nolan <nolan@gw.tssi.com>)
List pgsql-general
Mike Nolan <nolan@gw.tssi.com> writes:
> You can't cast a variable char type to a numeric, though apparently
> you can cast text to numeric.  (I'd be curious to know why one but not
> the other.)

Lack of the necessary entries in pg_cast.  I can't think of any
particularly good reason why they're not there, so I have added them in
CVS tip.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Expression indexes and casts
Next
From: Tom Lane
Date:
Subject: Re: PostgeSQL problem (server crashed?)