Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 613799FB2E7 for ; Fri, 2 Feb 2007 23:22:26 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 44472-10 for ; Fri, 2 Feb 2007 23:22:23 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 6BC919F9F18 for ; Fri, 2 Feb 2007 23:22:23 -0400 (AST) Received: from [192.168.1.50] (or-67-76-146-141.sta.embarqhsd.net [67.76.146.141]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l133MKDP011984 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Feb 2007 19:22:21 -0800 Message-ID: <45C400B2.8010008@commandprompt.com> Date: Fri, 02 Feb 2007 19:25:38 -0800 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: Kirk Wythers CC: Tom Lane , Luke Lonergan , "Steinar H. Gunderson" , =?ISO-8859-1?Q?G=E1briel_=C1kos?= , pgsql-performance@postgresql.org Subject: Re: trouble with a join on OS X References: <293ED31C-0866-4616-9D44-A22D8111E57C@umn.edu> <26430.1170469932@sss.pgh.pa.us> <7CF821AD-20DA-4CC7-8A05-5B778B164327@umn.edu> In-Reply-To: <7CF821AD-20DA-4CC7-8A05-5B778B164327@umn.edu> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Fri, 02 Feb 2007 19:22:21 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/41 X-Sequence-Number: 23095 Kirk Wythers wrote: > > On Feb 2, 2007, at 8:32 PM, Tom Lane wrote: > >> Kirk Wythers writes: >>> On Feb 2, 2007, at 7:39 PM, Luke Lonergan wrote: >>>> Now he's got to worry about how to page through 8GB of results in >>>> something less than geological time with the space bar ;-) >> >>> I actually have no intention of paging through the results, but >>> rather need to use the query to get the results into a new table with >>> UPDATE, so that a GIS system can do some interpolations with subsets >>> of the results. >> >> Er ... then why are you SELECTing the data at all? You can most likely >> get it done much faster if the data stays inside the database engine. >> >> > > The new table needs to be filled with the results of the join. If there > is a way to do this without a SELECT, please share. INSERT INTO foo SELECT * FROM BAR JOIN baz USING (id) Joshua D. Drake > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org > -- === The PostgreSQL Company: Command Prompt, Inc. === Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 Providing the most comprehensive PostgreSQL solutions since 1997 http://www.commandprompt.com/ Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate PostgreSQL Replication: http://www.commandprompt.com/products/