Re: RFC: Logging plan of the running query - Mailing list pgsql-hackers

From Étienne BERSAC
Subject Re: RFC: Logging plan of the running query
Date
Msg-id 9c36599db62ef7466a297843fe812fc60e827cd2.camel@dalibo.com
Whole thread Raw
In response to Re: RFC: Logging plan of the running query  (torikoshia <torikoshia@oss.nttdata.com>)
Responses Re: RFC: Logging plan of the running query  (torikoshia <torikoshia@oss.nttdata.com>)
List pgsql-hackers
> Hi,
>
> Yeah, and when we have a situation where we want to run
> pg_log_query_plan(), we can run it in any environment as long as it
> is bundled with the core.

Is it possible to get the plan of a backend programmatically without
access to the logs?

Something like pg_get_query_plan(pid, format) which output would be the
same as EXPLAIN.

Regards,
Étienne BERSAC
Dalibo



pgsql-hackers by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: Fix output of zero privileges in psql
Next
From: Peter Smith
Date:
Subject: Re: Synchronizing slots from primary to standby