pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Fowler <postgres@mianos.com>
To: Michael Meskes <meskes@postgresql.org>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: embedded sql interface to ip address type
Date: Sat, 22 Mar 2003 13:27:41 +1100
Message-ID: <008001c2f01a$9cdcfee0$fb01a8c0@mianos> (raw)
References: <20030321064112.GA5117@firewall.keta.mine.nu>
	<20030321150648.GB27690@feivel.fam-meskes.de>

> What exactly do you mean?  A C type for IP addresses? That doesn't
> exist. Right now this type has to be stored in character strings.

Thanks for the answer Michael. That was exactly what I meant and your answer
was exactly what I needed. I thought I needed to bind the address structure
to the ipaddr column but that did not work so I changed the type to text and
converted the address to a char string. Now you tell me it's just text, I
went back and changed the database datatype to inet address and it's all
good.
--
Rob Fowler




view thread (5+ messages)  latest in thread

Message-ID: <008001c2f01a$9cdcfee0$fb01a8c0@mianos>
Permalink:  ../008001c2f01a$9cdcfee0$fb01a8c0@mianos/
Also on:    postgresql.org/message-id/008001c2f01a$9cdcfee0$fb01a8c0@mianos

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: postgres@mianos.com, meskes@postgresql.org
  Subject: Re: embedded sql interface to ip address type
  In-Reply-To: <008001c2f01a$9cdcfee0$fb01a8c0@mianos>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox