pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Lewis <mlewis@entrata.com>
Cc: kimaidou <kimaidou@gmail.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: postgres performance list <pgsql-performance@postgresql.org>
Subject: Re: Aggregate and many LEFT JOIN
Date: Fri, 22 Feb 2019 13:05:59 -0500
Message-ID: <17803.1550858759@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHOFxGpHYTTVAdJW1Fi9K3N4P12nF384WyrvwbhgZBYpCMmC2g@mail.gmail.com>
References: <CAMKXKO6Ltz14uVgAyxy-cGSZoOQCbU5__2mjgVPv90snONZjNw@mail.gmail.com>
	<20190222155415.GE28750@telsasoft.com>
	<CAHOFxGpQ+RDdbfaVTPC8mHhRu5mQ48q3CTac3Vtfzo=7yn4U9Q@mail.gmail.com>
	<CAMKXKO5d8g45qYUtB6FvbQYW4JVEzjUBxN5yJtgvQ+90A0ukBg@mail.gmail.com>
	<CAHOFxGpHYTTVAdJW1Fi9K3N4P12nF384WyrvwbhgZBYpCMmC2g@mail.gmail.com>

Michael Lewis <mlewis@entrata.com> writes:
> Does the plan change significantly with this-
> set session work_mem='250MB';
> set session geqo_threshold = 20;
> set session join_collapse_limit = 20;

Yeah ... by my count there are 16 tables in this query, so raising
join_collapse_limit to 15 is not enough to ensure that the planner
considers all join orders.  Whether use of GEQO is a big problem
is harder to say, but it might be.

			regards, tom lane




view thread (12+ messages)  latest in thread

Message-ID: <17803.1550858759@sss.pgh.pa.us>
Permalink:  ../17803.1550858759@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17803.1550858759@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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mlewis@entrata.com, kimaidou@gmail.com, pryzby@telsasoft.com
  Subject: Re: Aggregate and many LEFT JOIN
  In-Reply-To: <17803.1550858759@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