Re: converting from text -> inet ... possible?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: The Hermit Hacker <scrappy(at)hub(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: converting from text -> inet ... possible?
Date: 2001-01-18 18:14:33
Message-ID: 200101181814.NAA25759@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Is this a TODO item?

>
> I scanned the archives, and one person asked it back in July, but there
> doesn't appear to be any followup ...
>
> Is it possible to go from text->inet in v7.0.3? if not, is it in v7.1?
>
> the following doesn't work:
>
> template1=# select '216.126.84.1'::text::inet;
> ERROR: Cannot cast type 'text' to 'inet'
>
> but I could be missing something in the docs?
>
>
> Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
> Systems Administrator @ hub.org
> primary: scrappy(at)hub(dot)org secondary: scrappy(at){freebsd|postgresql}.org
>
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-01-18 18:15:55 Re: compiling 7.1-beta1
Previous Message Bruce Momjian 2001-01-18 18:13:48 Re: Changes to include files