pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Atkins <steve@blighty.com>
To: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: Slow join using network address function
Date: Tue, 24 Feb 2004 09:14:42 -0800
Message-ID: <20040224171442.GE5368@gp.word-to-the-wise.com> (raw)
In-Reply-To: <001d01c3face$bca62d40$c300000a@caliente>
References: <000701c3fa02$e4e3d180$c300000a@caliente>
	<20040223160734.GA11052@gp.word-to-the-wise.com>
	<001d01c3face$bca62d40$c300000a@caliente>

On Tue, Feb 24, 2004 at 01:07:10PM +0100, Eric Jain wrote:
> > <http://word-to-the-wise.com/ipr.tgz; is a datatype that contains 
> > a range of IPv4 addresses, and which has the various operators to 
> > make it GIST indexable.
> 
> Great, this looks very promising.
> 
> >   No cast operators between ipr and inet types.
> 
> Any way to work around this, short of dumping and reloading tables?
> 
> SELECT ipr '1.2.3.4'; -- Okay
> SELECT ipr text(inet '1.2.3.4'); -- Syntax error, of course
> SELECT ipr(text(inet '1.2.3.4')); -- Function does not exist, of course

There's probably some horrible SQL hack that would let you do it, but
I should add some casting code anyway. Shouldn't be too painful to do -
I'll try and get that, and some minimal documentation out today.

Cheers,
  Steve



view thread (10+ messages)  latest in thread

Message-ID: <20040224171442.GE5368@gp.word-to-the-wise.com>
Permalink:  ../20040224171442.GE5368@gp.word-to-the-wise.com/
Also on:    postgresql.org/message-id/20040224171442.GE5368@gp.word-to-the-wise.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: steve@blighty.com
  Subject: Re: Slow join using network address function
  In-Reply-To: <20040224171442.GE5368@gp.word-to-the-wise.com>
  References: <000701c3fa02$e4e3d180$c300000a@caliente> <20040223160734.GA11052@gp.word-to-the-wise.com> <001d01c3face$bca62d40$c300000a@caliente> <20040224171442.GE5368@gp.word-to-the-wise.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