title: postgresql error: canceling statement due to user request
body: <p><strong>What causes this error in postgresql?</strong></p>
  
  <pre><code>org.postgresql.util.PSQLException: ERROR: canceling statement due to user request
  </code></pre>
  
  <p><strong>My Software Versions:</strong></p>
  
  <p>PostgreSQL <code>9.1.6 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.7.2 20120921 (Red Hat 4.7.2-2), 64-bit".</code></p>
  
  <p>My postgresql driver is: <code>postgresql-9.2-1000.jdbc4.jar</code></p>
  
  <p>Using java version: <code>Java 1.7</code></p>
  
  <p>Clue: My postgresql database is on a solid state hard drive and this error happens randomly and sometimes not at all.</p>