Oracle maintains session tables which allow you to see what's running at a particular point in time, and even map it to a process ID so you can see what that runaway process is doing. Is there something similar in Postgres? I've needed to do this several times lately but I don't know how.