Re: Problem with insert into select...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: stephen farrell <sfarrell(at)almaden(dot)ibm(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Problem with insert into select...
Date: 2003-11-20 22:58:40
Message-ID: 7439.1069369120@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

stephen farrell <sfarrell(at)almaden(dot)ibm(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Matthew T. O'Connor 2003-11-20 23:18:27 Re: [HACKERS] More detail on settings for pgavd?
Previous Message stephen farrell 2003-11-20 21:09:31 Problem with insert into select...