> However having the nested queryid in > pg_stat_activity would be convenient to track > what is a long stored functions currently doing.
+1 And this could permit to get wait event sampling per queryid when pg_stat_statements.track = all Regards PAscal -- Sent from: https://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html