Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This assumes that the race condition bug in the jdbc jar file for postgresql is responsible for the above error. (race condition described here: <a href="http://postgresql.1045698.n5.nabble.com/ERROR-canceling-query-due-to-user-request-td2077761.html" rel="nofollow">http://postgresql.1045698.n5.nabble.com/ERROR-canceling-query-due-to-user-request-td2077761.html</a>)</p> <p><strong>Workaround 1, refresh connection to database periodically</strong></p> <p>One workaround is to close the connection to the database and create a new connection to the database periodically. After every few thousand sql statements just close the connection and re-create it. Then for some reason this error is no longer thrown. </p> <p><strong>Workaround 2, turn on logging</strong> </p> <p>If you turn on logging at the JDBC driver level when you are setting the driver, then in some situations the race condition problem is neutralized:</p> <pre><code>Class.forName("org.postgresql.Driver"); org.postgresql.Driver.setLogLevel(org.postgresql.Driver.DEBUG); </code></pre> <p><strong>Workaround 3, catch the exception and re-initialize connection</strong></p> <p>You could also try catching the specific exception, re-initializing the connection and trying the query again. </p> <p><strong>Workaround 4, wait until postgresql jdbc jar comes out with a bug fix</strong></p> <p>I think the problem may be associated with the speed of my SSD hard drive. If you get this error, please post how to reproduce it consistently here, there are devs very interested in squashing this bug.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload