Postgresql – Find the statement currently running in my PL/pgSQL code block
Is there a way to figure out which statement from the block is currently running in Postgres? (Even extra extensions or tracing might be an option) Below is the quick way to reproduce but in real scenario the block is…