Re: Inet type how to?

From: Alex Pilosov <alex(at)pilosoft(dot)com>
To: Olivier PRENANT <ohp(at)pyrenet(dot)fr>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Inet type how to?
Date: 2000-06-02 20:07:49
Message-ID: Pine.BSO.4.10.10006021601130.8307-100000@spider.pilosoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
> > >
> > >
> >
>
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2000-06-02 20:32:07 Re: Inet type how to?
Previous Message Bruce Momjian 2000-06-02 19:24:22 Re: 7.0.1 is ready