Michael Goldner <mgoldner(at)agmednet(dot)com> writes:
> When I shutdown Jboss, the idle process disappears, but the 2 "INSERT
> waiting" processes remain indefinitely.
Ah. That makes sense, because a backend blocked partway through a query
isn't going to notice its client disconnecting. The question here
though is still "what are they waiting for?". See pg_locks.
regards, tom lane