Re: Inet type how to? - Mailing list pgsql-hackers

From Alex Pilosov
Subject Re: Inet type how to?
Date
Msg-id Pine.BSO.4.10.10006021601130.8307-100000@spider.pilosoft.com
Whole thread Raw
In response to Re: Inet type how to?  (Olivier PRENANT <ohp@pyrenet.fr>)
Responses Re: Inet type how to?
List pgsql-hackers
It works for me for \copy (which uses inserts)

But yes, there is no way to convert text to inet, which is a pain. When it
annoys me sufficiently, I think I'll write text_inet wrapping inet_in...Or
just wait for someone else to do it (TODO, bruce? ;)

On Fri, 2 Jun 2000, Olivier PRENANT wrote:

> Yes, I know that; but even when I reload it, copy complains it can't
> convert 194.250.190.185 ( for example) to inet!
> 
> Regards
> On Fri, 2 Jun 2000, Alex Pilosov wrote:
> 
> > You cannot change column type without dropping/recreating the table.
> > 
> > On Fri, 2 Jun 2000, Olivier PRENANT wrote:
> > 
> > > Hi all,
> > > 
> > > I've had a table for years to keep radius connections to our NAS.
> > > 
> > > Not havin inet type, I typed ip_adress as text. Now, I'em trying to change
> > > this column type to no avail.
> > > 
> > > select inet(ip_addr)... : cannot cast type to inet
> > > 
> > > How can I change this column??
> > > 
> > > TIA
> > > 
> > > 
> > 
> 
> 



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: 7.0.1 is ready
Next
From: Bruce Momjian
Date:
Subject: Re: Inet type how to?