pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Florian Weimer <fw@deneb.enyo.de>
To: Sriram Dandapani <sdandapani@counterpane.com>
Cc: Pgsql-Performance (E-mail) <pgsql-performance@postgresql.org>
Subject: Re: ip address data type
Date: Tue, 25 Apr 2006 21:22:16 +0200
Message-ID: <87d5f54g0n.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: <6992E470F12A444BB787B5C937B9D4DF0406B11B@ca-mail1.cis.local>
References: <6992E470F12A444BB787B5C937B9D4DF0406B11B@ca-mail1.cis.local>

* Sriram Dandapani:

> Does the inet data type offer comparison/search performance benefits
> over plain text for ip addresses..

Queries like "host << '192.168.17.192/28'" use an available index on
the host column.  In theory, you could do this with LIKE and strings,
but this gets pretty messy and needs a lot of client-side logic.



view thread (4+ messages)

Message-ID: <87d5f54g0n.fsf@mid.deneb.enyo.de>
Permalink:  ../87d5f54g0n.fsf@mid.deneb.enyo.de/
Also on:    postgresql.org/message-id/87d5f54g0n.fsf@mid.deneb.enyo.de

 · 

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: fw@deneb.enyo.de, sdandapani@counterpane.com
  Subject: Re: ip address data type
  In-Reply-To: <87d5f54g0n.fsf@mid.deneb.enyo.de>

* 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