pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julien Rouhaud <rjuju123@gmail.com>
To: Matheus Martin <matheus.martin@voidbridge.com>
Cc: Maxim Boguk <maxim.boguk@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Missing query plan for auto_explain.
Date: Tue, 13 Sep 2022 00:46:16 +0800
Message-ID: <20220912164616.zilo6ylqt7s2gpvt@jrouhaud> (raw)
In-Reply-To: <CAB_m0bHkCQTaeZZNf4Tj_bM_gUDjowhYk42y89D0VSW8Eh_cPw@mail.gmail.com>
References: <CAB_m0bG9BTFSg_n9EoE+J_wKpHjsYhYstCm2sGCkEQ=mEcaG6w@mail.gmail.com>
	<CAK-MWwSWzTdV-L-sbFt6gwT35ibBHAqSGuSJAPo2xbJ-1RvqXw@mail.gmail.com>
	<CAB_m0bHf8wGboegycmOceyk+-5CFmPSFLXxQOTwwgYkGX1q=uQ@mail.gmail.com>
	<CAK-MWwQ3sD_s2HYePjOOHeEeO3fxQPpUzxrhcUEaVyTC+xh4LQ@mail.gmail.com>
	<CAB_m0bHkCQTaeZZNf4Tj_bM_gUDjowhYk42y89D0VSW8Eh_cPw@mail.gmail.com>

On Mon, Sep 12, 2022 at 05:34:37PM +0100, Matheus Martin wrote:
> Understood. I have run a prepared statement with the query in question
> through `psql` and JIT was not used (see plan below), however please note
> that the long response times were never reproducible from `psql`, they only
> happen from our JDBC application.

Do you have pg_stat_statements enabled?  If yes you could check what are the
maximum execution and planning time for that query, which may give an answer.





view thread (17+ messages)

Message-ID: <20220912164616.zilo6ylqt7s2gpvt@jrouhaud>
Permalink:  ../20220912164616.zilo6ylqt7s2gpvt@jrouhaud/
Also on:    postgresql.org/message-id/20220912164616.zilo6ylqt7s2gpvt@jrouhaud

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: rjuju123@gmail.com, matheus.martin@voidbridge.com, maxim.boguk@gmail.com
  Subject: Re: Missing query plan for auto_explain.
  In-Reply-To: <20220912164616.zilo6ylqt7s2gpvt@jrouhaud>
  References: <CAB_m0bG9BTFSg_n9EoE+J_wKpHjsYhYstCm2sGCkEQ=mEcaG6w@mail.gmail.com> <CAK-MWwSWzTdV-L-sbFt6gwT35ibBHAqSGuSJAPo2xbJ-1RvqXw@mail.gmail.com> <CAB_m0bHf8wGboegycmOceyk+-5CFmPSFLXxQOTwwgYkGX1q=uQ@mail.gmail.com> <CAK-MWwQ3sD_s2HYePjOOHeEeO3fxQPpUzxrhcUEaVyTC+xh4LQ@mail.gmail.com> <CAB_m0bHkCQTaeZZNf4Tj_bM_gUDjowhYk42y89D0VSW8Eh_cPw@mail.gmail.com> <20220912164616.zilo6ylqt7s2gpvt@jrouhaud>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox