Re: PostgreSQL 12.3 slow index scan chosen

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kenneth Marshall <ktm(at)rice(dot)edu>
Cc: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: PostgreSQL 12.3 slow index scan chosen
Date: 2020-06-19 22:10:34
Message-ID: 1759984.1592604634@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Kenneth Marshall <ktm(at)rice(dot)edu> writes:
> On Fri, Jun 19, 2020 at 04:59:15PM -0400, Tom Lane wrote:
>> What's the actual maximum value of objectcustomfieldvalues.objectid,
>> and how does that compare to the endpoint value in the pg_stats
>> histogram for that column? If you've got one outlier in the table,
>> it might get missed by ANALYZE.

> max(objectcustomfieldvalues.objectid) = 28108423 and here is the
> histogram for that column:

... 3304313,3693956,27667772}

Hmm, does seem like you have some outlier keys. Are any of the keys in
the column you're trying to join to larger than 27667772?

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Kenneth Marshall 2020-06-19 22:25:33 Re: PostgreSQL 12.3 slow index scan chosen
Previous Message Kenneth Marshall 2020-06-19 21:23:38 Re: PostgreSQL 12.3 slow index scan chosen