Re: Problem with insert into select... - Mailing list pgsql-performance

From Tom Lane
Subject Re: Problem with insert into select...
Date
Msg-id 7439.1069369120@sss.pgh.pa.us
Whole thread Raw
In response to Problem with insert into select...  (stephen farrell <sfarrell@almaden.ibm.com>)
Responses Re: Problem with insert into select...  (stephen farrell <sfarrell@almaden.ibm.com>)
List pgsql-performance
stephen farrell <sfarrell@almaden.ibm.com> writes:
> I'm having a problem with a queyr like:  INSERT INTO FACT (x,x,x,x,x,x)
> SELECT a.key,b.key,c.key,d.key,e.key,f.key from x,a,b,c,d,e,f where x=a
> and x=b ....   -- postgres7.4 is running out of memory.  I'm not sure
> why this would happen -- does it buffer the subselect before doing the
> insert?

What does EXPLAIN show for the query?  And we need to see the exact
query and table definitions, not abstractions.

            regards, tom lane

pgsql-performance by date:

Previous
From: stephen farrell
Date:
Subject: Problem with insert into select...
Next
From: Tom Lane
Date:
Subject: Re: duration logging setting in 7.4