How to stop/kill a query in postgresql? : <p>This question is while postmaster is running your query in the background, how to kill or stop it?</p>

<p>For example, your shell or any frontend may be disconnected due to network issue, you cannot use ctrl-D to kill it but the background postmaster is still running your query. How to kill it?</p>
