Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5L1u2a51798 for ; Wed, 20 Jun 2001 21:56:02 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id f5L1to311569; Wed, 20 Jun 2001 21:55:51 -0400 (EDT) To: "Rainer Mager" cc: "PostgreSQL Admin" Subject: Re: High memory usage In-reply-to: References: Comments: In-reply-to "Rainer Mager" message dated "Wed, 20 Jun 2001 17:01:22 +0900" Date: Wed, 20 Jun 2001 21:55:50 -0400 Message-ID: <11566.993088550@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200106/141 X-Sequence-Number: 1708 "Rainer Mager" writes: > First, this type of query seems to use exponential amounts of memory. Hmm. What does EXPLAIN show as the plan for the query? How long does it take to do the EXPLAIN? If the EXPLAIN alone takes a lot of time/ space, then you need to reduce the size of the planner's search space with an explicit JOIN --- see http://www.ca.postgresql.org/users-lounge/docs/7.1/postgres/explicit-joins.html regards, tom lane