What datatype should I use to store an IP Address?

From: Andre Lopes <lopes80andre(at)gmail(dot)com>
To: postgresql Forums <pgsql-general(at)postgresql(dot)org>
Subject: What datatype should I use to store an IP Address?
Date: 2010-03-25 10:25:52
Message-ID: 18f98e681003250325j50963719q1f52a9b28f5d7c5b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I'm using Varchar(16) to store an IP Address. PostgreSQL offers another
datatypes to store IP's or it is OK to store in Varchar(16)?

Best Regards,

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michał Pawlikowski 2010-03-25 10:28:52 Re: What datatype should I use to store an IP Address?
Previous Message dipti shah 2010-03-25 09:38:50 Re: Get the list of permissions/privileges on schema