pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Massive memory use for star query
Date: Fri, 15 Apr 2011 12:43:01 -0400
Message-ID: <25522.1302885781@sss.pgh.pa.us> (raw)
In-Reply-To: <4DA7CB25.5040102@catalyst.net.nz>
References: <4DA7CB25.5040102@catalyst.net.nz>

Mark Kirkwood <mark.kirkwood@catalyst.net.nz> writes:
> I've recently seen examples of star-like queries using vast amounts of 
> memory in one of our production systems. Here's a simplified example 
> using synthetic data (see attached to generate if desired):

> SET geqo_threshold = 14;
> SET from_collapse_limit = 14;
> SET join_collapse_limit = 14;

Well, if you're going to do the above, you should be expecting the
planner to eat a lot of memory.  There is a reason why the default
values of those parameters are significantly lower than that ...

			regards, tom lane



view thread (10+ messages)  latest in thread

Message-ID: <25522.1302885781@sss.pgh.pa.us>
Permalink:  ../25522.1302885781@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25522.1302885781@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mark.kirkwood@catalyst.net.nz
  Subject: Re: Massive memory use for star query
  In-Reply-To: <25522.1302885781@sss.pgh.pa.us>
  References: <4DA7CB25.5040102@catalyst.net.nz> <25522.1302885781@sss.pgh.pa.us>

* 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