Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 6C8019FBAEA for ; Tue, 6 Mar 2007 14:57:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 11579-08 for ; Tue, 6 Mar 2007 14:57:36 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sn.sai.msu.ru (sn.sai.msu.ru [195.208.220.215]) by postgresql.org (Postfix) with ESMTP id C95C99FB9F5 for ; Tue, 6 Mar 2007 14:57:37 -0400 (AST) Received: from sn.sai.msu.ru (localhost [127.0.0.1]) by sn.sai.msu.ru (8.12.8/8.12.8) with ESMTP id l26IvNqR019863; Tue, 6 Mar 2007 21:57:23 +0300 Received: from localhost (megera@localhost) by sn.sai.msu.ru (8.12.8/8.12.8/Submit) with ESMTP id l26IvNTI019859; Tue, 6 Mar 2007 21:57:23 +0300 X-Authentication-Warning: sn.sai.msu.ru: megera owned process doing -bs Date: Tue, 6 Mar 2007 21:57:23 +0300 (MSK) From: Oleg Bartunov X-X-Sender: megera@sn.sai.msu.ru To: Steve Midgley cc: Peter Eisentraut , pgsql-sql@postgresql.org Subject: Re: GiST index question: performance In-Reply-To: <20070306174325.91C2F9FBA22@postgresql.org> Message-ID: References: <20070305191920.4F6639FB214@postgresql.org> <20070305213005.E6BEC9FB265@postgresql.org> <200703061001.27552.peter_e@gmx.net> <20070306174325.91C2F9FBA22@postgresql.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.191 tagged_above=0 required=5 tests=AWL, BAYES_50, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200703/60 X-Sequence-Number: 27698 On Tue, 6 Mar 2007, Steve Midgley wrote: > Hi Peter, > > :) > > All my Pg code is written via (or handed to) an abstraction layer, and I > actually write no functions or stored procedures at all. I write using Rails, > so in this case it's a Ruby library called ActiveRecord which has a Postgres > module that allows me to talk via "ActiveRecord-speak" or via direct Postgres > sql commands. (For example, AR has no idea how to create a GiST index, so I > issue that DDL statement manually using the special syntax - also AR is not > always so smart about SQL queries so tricky ones I write by hand). > > Maybe I misunderstand Q3C completely but it looks like C code that has to be > installed into the Postgres server itself - not a series of SQL functions > that can implemented on an unmodified server. I think my ISP is fine with > anything that gets installed via user-level privileges. Anything that > requires root and/or anything that involves binary code they are more > cautious about. Q3C as a contrib module doesn't require root priviliges, you could compile it in your home directory ! The only issue is that you should have pg superuser rights, but you can always ask somebody with such rights to install compiled module to your database. Regards, Oleg _____________________________________________________________ Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru), Sternberg Astronomical Institute, Moscow University, Russia Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/ phone: +007(495)939-16-83, +007(495)939-23-83