RE: Planning performance problem (67626.278ms)

Поиск
Список
Период
Сортировка
От Igor Neyman
Тема RE: Planning performance problem (67626.278ms)
Дата
Msg-id BN6PR1701MB1890448F8E5648C2495FC9D8DA2C0@BN6PR1701MB1890.namprd17.prod.outlook.com
обсуждение исходный текст
Ответ на Planning performance problem (67626.278ms)  (Krzysztof Plocharz <plocharz@9livesdata.com>)
Ответы Re: Planning performance problem (67626.278ms)
Список pgsql-performance
-----Original Message-----
From: Krzysztof Plocharz [mailto:plocharz@9livesdata.com] 
Sent: Monday, April 08, 2019 10:11 AM
To: pgsql-performance@lists.postgresql.org
Subject: Planning performance problem (67626.278ms)

Hi

We have some very strange query planning problem. Long story short it takes 67626.278ms just to plan. Query execution
takes12ms.
 

Query has 7 joins and 2 subselects.
It looks like the issue is not deterministic, sometimes is takes few ms to plan the query.

One of the tables has 550,485,942 live tuples and 743,504,012 dead tuples. Running ANALYZE on that tables solves the
problemonly temporarily.
 

Question is how can we debug what is going on?

Best Regards,
Krzysztof Płocharz

_______________________________________________________________________________________________

Why do you have to run Analyze? Did you turn off Autovacuum?

Regards,
Igor Neyman

В списке pgsql-performance по дате отправления:

Предыдущее
От: Krzysztof Plocharz
Дата:
Сообщение: Planning performance problem (67626.278ms)
Следующее
От: Krzysztof Plocharz
Дата:
Сообщение: Re: Planning performance problem (67626.278ms)