Re: Actual rows significantly more than estimated during many joins

From: Andrew Beverley <andy(at)andybev(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Actual rows significantly more than estimated during many joins
Date: 2016-06-04 23:36:44
Message-ID: 20160605003644.923917a8f320584730a413ff@andybev.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 4 Jun 2016 Andrew Beverley <andy(at)andybev(dot)com> wrote:
> I'm performing a query with many joins, with a WHERE condition on the
> "root" table. As far as I am aware, each join is indexed, as is the
> WHERE clause. To my simple mind, this is just a case of taking a set
> of conditional indexed values, and then "adding on" the relevant
> indexed data.

Apologies, I think I've found the problem. All the joined table are
meant to have only a single value for the "root" table, but there were
actually several for some, which was exponentially adding many rows for
all the joins. I've not tried it yet, but I suspect that once I fix
that the performance will be as expected.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bryan Henderson 2016-06-05 03:43:12 Why threads every 30 seconds?
Previous Message lifetronics 2016-06-04 20:20:51 Postgres Dropped DB have recovered files how to restore