Re: Allow auto_explain to log plans before queries are executed

From: legrand legrand <legrand_legrand(at)hotmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Allow auto_explain to log plans before queries are executed
Date: 2020-03-27 17:23:51
Message-ID: 1585329831031-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Kyotaro Horiguchi-4 wrote
> At Thu, 27 Feb 2020 06:27:24 +0100, Pavel Stehule &lt;

> pavel.stehule@

> &gt; wrote in
>> odesílatel Kyotaro Horiguchi &lt;

> horikyota.ntt@

> &gt;
>> napsal:
>
> If we need a live plan dump of a running query, We could do that using
> some kind of inter-backend triggering. (I'm not sure if PG offers
> inter-backend signalling facility usable by extensions..)
>
> =# select auto_explain.log_plan_backend(12345);
>
> postgresql.log:
> LOG: requested plan dump: &lt;blah, blah&gt;..
>
> regards.
>
> --
> Kyotaro Horiguchi
> NTT Open Source Software Center

Did you know
https://www.postgresql-archive.org/pg-show-plans-Seeing-all-execution-plans-at-once-td6129231.html
?

Regards
PAscal

--
Sent from: https://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message legrand legrand 2020-03-27 17:27:52 Re: Patch: to pass query string to pg_plan_query()
Previous Message Vik Fearing 2020-03-27 16:58:04 Re: INSERT ... OVERRIDING USER VALUE vs GENERATED ALWAYS identity columns