+1if this permits to use extension pg_query_state<https://github.com/postgrespro/pg_query_state> , that would be great !
--Sent from: http://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html