Re: nested query vs left join: query planner very confused - Mailing list pgsql-general

From David Rysdam
Subject Re: nested query vs left join: query planner very confused
Date
Msg-id 87zjop64i2.fsf@loud.llan.ll.mit.edu
Whole thread Raw
In response to Re: nested query vs left join: query planner very confused  (David Rysdam <drysdam@ll.mit.edu>)
List pgsql-general
On Wed, 27 Nov 2013 13:04:54 -0500, David Rysdam <drysdam@ll.mit.edu> wrote:
> We deliberately try to keep our queries fairly simple for several
> reasons. This isn't the most complicated, but they don't get much more
> than this. I'll have them start with 10MB and see what they get.

10MB was enough to get that query to come back instantly. The same query
on some larger tables were still slow so we ended up bumping up to 50MB
to get the entire job done. That probably sounds like a lot to you guys,
but now that we know the behavior and what kind of queries we have I
think we're OK.

(And if you want a shocker, when I looked at our own DB, we've had
work_mem set to 250MB on a lot of our servers and 1GB on our main
production machine. Heh. I've got some PG tuning books here next to me
now...)

Thanks!

Attachment

pgsql-general by date:

Previous
From: David Rysdam
Date:
Subject: Re: nested query vs left join: query planner very confused
Next
From: "Tomas Vondra"
Date:
Subject: Re: ERROR: out of memory DETAIL: Failed on request of size ???