too high planning time

From: Kenny Bachman <kenny(dot)bachman17(at)gmail(dot)com>
To: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: too high planning time
Date: 2023-02-02 09:54:34
Message-ID: CAC0w7LKjDd16T80CYejmMrht1Ddjcf1P8jg1POdH=RyRxCHLXA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello Team,

I have a problem with the explain analyze' output of some queries. There is
too high planning time, but the execution time is relatively low. What is
the possible reason behind this problem? I also ran the vacuum and analyze
commands for the table.

EXPLAIN ANALYZE select
i."DefinitionId",
from
"T_WF_INSTANCE" i
where
i."InstanceId" = 10045683193;

QUERY PLAN

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Index Scan using
"T_WF_INSTANCE_InstanceId_ApplicationCd_EntityStatusCd_idx" on
"T_WF_INSTANCE" i (cost=0.57..2.79 rows=1 width=34) (actual
time=2.522..2.522 rows=1 loops=1)
Index Cond: ("InstanceId" = '10045683193'::bigint)

* Planning Time: 8460.446 ms Execution Time: 2.616 ms*
(4 rows)

Thank you,
Kenny

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2023-02-02 15:24:25 Re: too high planning time
Previous Message rh 2023-02-02 05:53:09 Re: Postgres Monitoring