X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 62697D1D332 for ; Tue, 24 Feb 2004 17:21:31 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 17140-08 for ; Tue, 24 Feb 2004 13:21:27 -0400 (AST) Received: from gp.word-to-the-wise.com (gp.word-to-the-wise.com [64.71.176.18]) by svr1.postgresql.org (Postfix) with ESMTP id 8FA6AD1CAF3 for ; Tue, 24 Feb 2004 13:21:26 -0400 (AST) Received: by gp.word-to-the-wise.com (Postfix, from userid 500) id 632209029EC; Tue, 24 Feb 2004 09:14:42 -0800 (PST) Date: Tue, 24 Feb 2004 09:14:42 -0800 From: Steve Atkins To: pgsql-performance Subject: Re: Slow join using network address function Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001d01c3face$bca62d40$c300000a@caliente> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/283 X-Sequence-Number: 5807 On Tue, Feb 24, 2004 at 01:07:10PM +0100, Eric Jain wrote: > > 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