Adam Witney <awitney(at)sghms(dot)ac(dot)uk> writes:> Shouldn't there be something in current_query?
Only if (a) you have stats_command_string turned on, *and* (b) youare a superuser or the owner of the target process.
regards, tom lane