Re: no MCV list of tiny table with unique columns - Mailing list pgsql-performance

From Tom Lane
Subject Re: no MCV list of tiny table with unique columns
Date
Msg-id 26162.1478117146@sss.pgh.pa.us
Whole thread Raw
In response to no MCV list of tiny table with unique columns  (Justin Pryzby <pryzby@telsasoft.com>)
Responses Re: no MCV list of tiny table with unique columns  (Justin Pryzby <pryzby@telsasoft.com>)
List pgsql-performance
Justin Pryzby <pryzby@telsasoft.com> writes:
> I believe the join is being (badly) underestimated, leading to a crappy plan
> involving multiple nested loop joins, which takes 2.5 hours instead of a
> handful of seconds; I believe that might be resolved by populating its MCV
> list..

With only two rows in the table, I'm not real sure why you'd need an MCV
list.  Could we see the actual problem query (and the other table
schemas), rather than diving into the code first?

            regards, tom lane


pgsql-performance by date:

Previous
From: Joao Junior
Date:
Subject: archive_command too slow.
Next
From: Justin Pryzby
Date:
Subject: Re: no MCV list of tiny table with unique columns