proposal - queryid can be used as filter for auto_explain

Pavel Stehule <pavel.stehule@gmail.com>

From: Pavel Stehule <pavel.stehule@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-04-13T04:46:24Z
Lists: pgsql-hackers
Hi

I have to investigate strange behaviour of some specific query. One
possibility is non stability of plan. This is a bigger server with a bigger
load, and I am a little bit afraid to use auto_explain for all queries.

Currently auto_explain doesn't support it, but it can be practical if we
can specify a list of queryid as a filter of auto_explain.

What do you think about this idea?

Regards

Pavel