pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Kirk Wythers <kwythers@umn.edu>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Luke Lonergan <llonergan@greenplum.com>
Cc: Steinar H. Gunderson <sgunderson@bigfoot.com>
Cc: Gábriel Ákos <akos.gabriel@i-logic.hu>
Cc: pgsql-performance@postgresql.org
Subject: Re: trouble with a join on OS X
Date: Fri, 02 Feb 2007 19:25:38 -0800
Message-ID: <45C400B2.8010008@commandprompt.com> (raw)
In-Reply-To: <7CF821AD-20DA-4CC7-8A05-5B778B164327@umn.edu>
References: <C1E927EA.1A0FC%llonergan@greenplum.com>
	<293ED31C-0866-4616-9D44-A22D8111E57C@umn.edu>
	<26430.1170469932@sss.pgh.pa.us>
	<7CF821AD-20DA-4CC7-8A05-5B778B164327@umn.edu>

Kirk Wythers wrote:
> 
> On Feb 2, 2007, at 8:32 PM, Tom Lane wrote:
> 
>> Kirk Wythers <kwythers@umn.edu> 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/




view thread (29+ messages)  latest in thread

Message-ID: <45C400B2.8010008@commandprompt.com>
Permalink:  ../45C400B2.8010008@commandprompt.com/
Also on:    postgresql.org/message-id/45C400B2.8010008@commandprompt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jd@commandprompt.com, kwythers@umn.edu, tgl@sss.pgh.pa.us, llonergan@greenplum.com, sgunderson@bigfoot.com, akos.gabriel@i-logic.hu
  Subject: Re: trouble with a join on OS X
  In-Reply-To: <45C400B2.8010008@commandprompt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox