pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: Sriram Dandapani <sdandapani@counterpane.com>
Cc: Pgsql-Performance (E-mail) <pgsql-performance@postgresql.org>
Subject: Re: ip address data type
Date: Mon, 24 Apr 2006 17:48:37 -0500
Message-ID: <20060424224837.GF64695@pervasive.com> (raw)
In-Reply-To: <6992E470F12A444BB787B5C937B9D4DF0406B11B@ca-mail1.cis.local>
References: <6992E470F12A444BB787B5C937B9D4DF0406B11B@ca-mail1.cis.local>

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@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



view thread (4+ messages)  latest in thread

Message-ID: <20060424224837.GF64695@pervasive.com>
Permalink:  ../20060424224837.GF64695@pervasive.com/
Also on:    postgresql.org/message-id/20060424224837.GF64695@pervasive.com

 · 

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-performance@postgresql.org
  Cc: jnasby@pervasive.com, sdandapani@counterpane.com
  Subject: Re: ip address data type
  In-Reply-To: <20060424224837.GF64695@pervasive.com>

* 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