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 490CDD1B989 for ; Tue, 24 Feb 2004 12:07:26 +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 96401-03 for ; Tue, 24 Feb 2004 08:07:27 -0400 (AST) Received: from expasy-ng.isb-sib.ch (expasy-f.unige.ch [192.33.215.142]) by svr1.postgresql.org (Postfix) with ESMTP id AA969D1CAF6 for ; Tue, 24 Feb 2004 08:07:22 -0400 (AST) Received: from caliente (router.isb-sib.ch [192.33.215.254]) (authenticated bits=0) by expasy-ng.isb-sib.ch (8.12.10/8.12.8) with ESMTP id i1OC7CMD006816; Tue, 24 Feb 2004 13:07:15 +0100 Message-ID: <001d01c3face$bca62d40$c300000a@caliente> From: "Eric Jain" To: "Steve Atkins" Cc: "pgsql-performance" References: <000701c3fa02$e4e3d180$c300000a@caliente> <20040223160734.GA11052@gp.word-to-the-wise.com> Subject: Re: Slow join using network address function Date: Tue, 24 Feb 2004 13:07:10 +0100 Organization: Swiss Institute of Bioinformatics MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-sib-MailScanner-Information: Please contact the ISP for more information X-sib-MailScanner: Found to be clean X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/276 X-Sequence-Number: 5800 > 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 ...