From: | "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com> |
---|---|
To: | Sriram Dandapani <sdandapani(at)counterpane(dot)com> |
Cc: | "Pgsql-Performance (E-mail)" <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: ip address data type |
Date: | 2006-04-24 22:48:37 |
Message-ID: | 20060424224837.GF64695@pervasive.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Mon, Apr 24, 2006 at 03:45:14PM -0700, Sriram Dandapani wrote:
> Hi
>
> I have queries that use like operators and regex patterns to determine
> if an ip address is internal or external (this is against a table with
> say 100 million distinct ip addresses).
>
> Does the inet data type offer comparison/search performance benefits
> over plain text for ip addresses..
Well, benchmark it and find out. :) But it'd be hard to be slower than
like or regex...
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
From | Date | Subject | |
---|---|---|---|
Next Message | Steve Atkins | 2006-04-24 23:40:16 | Re: ip address data type |
Previous Message | Sriram Dandapani | 2006-04-24 22:45:14 | ip address data type |