Re: trouble with a join on OS X

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Kirk Wythers <kwythers(at)umn(dot)edu>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Luke Lonergan <llonergan(at)greenplum(dot)com>, "Steinar H(dot) Gunderson" <sgunderson(at)bigfoot(dot)com>, Gábriel Ákos <akos(dot)gabriel(at)i-logic(dot)hu>, pgsql-performance(at)postgresql(dot)org
Subject: Re: trouble with a join on OS X
Date: 2007-02-03 03:25:38
Message-ID: 45C400B2.8010008@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2007-02-03 03:31:17 Re: trouble with a join on OS X
Previous Message Kirk Wythers 2007-02-03 03:19:15 Re: trouble with a join on OS X