Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 1273B2E0032 for ; Mon, 16 Jun 2008 16:26:27 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 11727-04 for ; Mon, 16 Jun 2008 16:26:21 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp12.hushmail.com (smtp12.hushmail.com [65.39.178.135]) by developer.postgresql.org (Postfix) with ESMTP id 73C882E002F for ; Mon, 16 Jun 2008 16:26:23 -0300 (ADT) Received: from smtp12.hushmail.com (localhost.localdomain [127.0.0.1]) by smtp12.hushmail.com (Postfix) with SMTP id 6C55A70082 for ; Mon, 16 Jun 2008 19:26:20 +0000 (UTC) Message-ID: From: Chris Mair To: pgsql-performance@postgresql.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v924) Subject: Re: [pgsql-performance] function difference(geometry, geometry) is SLOW! Date: Mon, 16 Jun 2008 21:26:14 +0200 X-Mailer: Apple Mail (2.924) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/58 X-Sequence-Number: 30408 > > Date: Mon, 16 Jun 2008 11:06:44 +0200 (CEST) > From: "luke.78@libero.it" > To: pgsql-performance@postgresql.org > Subject: function difference(geometry,geometry) is SLOW! > Message-ID: > <10574478.390451213607204584.JavaMail.defaultUser@defaultHost> > > Hi, > In my pgsql procedure, i use the function > > geometryDiff := difference > (geometry1,geometry2); > > but this function is very slow!!! > What can I do to > speed this function? > Exists a special index for it? > > Thanks in advance! > Luke Hi, this is a postgis function. Postgis is an independent project and you might want to ask there: http://www.postgis.org/mailman/listinfo/postgis-users or http://www.faunalia.com/cgi-bin/mailman/listinfo/gfoss (italian). Anyway, as long as you just compute the difference between 2 given shapes, no index can help you. Indices speed up searches... Bye, Chris.