Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is not a deadlock, this is lost connection problem.</p> <p>A deadlock occurs when two transactions try to lock the resources previously locked by each other. <code>PostgreSQL</code> detects these situations.</p> <p>In your case, <code>master</code> locks a resource, <code>slave</code> waits for <code>master</code>, and <code>master</code> waits for the user input which it never receives because the connection is lost.</p> <p>Whenever <code>PostgreSQL</code> detects a lost connection, it rollbacks its transaction automatically.</p> <p>To control connection loss detection, you can use the following <code>PostgreSQL</code> <a href="http://www.postgresql.org/docs/8.2/static/runtime-config-connection.html" rel="nofollow noreferrer"><strong>connection options</strong></a>:</p> <blockquote> <p><code>tcp_keepalives_idle (integer)</code></p> <p>On systems that support the <code>TCP_KEEPIDLE</code> socket option, specifies the number of seconds between sending keepalives on an otherwise idle connection. A value of zero uses the system default. If <code>TCP_KEEPIDLE</code> is not supported, this parameter must be zero. This parameter is ignored for connections made via a Unix-domain socket. </p> <p><code>tcp_keepalives_interval (integer)</code></p> <p>On systems that support the <code>TCP_KEEPINTVL</code> socket option, specifies how long, in seconds, to wait for a response to a keepalive before retransmitting. A value of zero uses the system default. If <code>TCP_KEEPINTVL</code> is not supported, this parameter must be zero. This parameter is ignored for connections made via a Unix-domain socket. </p> <p><code>tcp_keepalives_count (integer)</code></p> <p>On systems that support the <code>TCP_KEEPCNT</code> socket option, specifies how many keepalives may be lost before the connection is considered dead. A value of zero uses the system default. If <code>TCP_KEEPCNT</code> is not supported, this parameter must be zero. This parameter is ignored for connections made via a Unix-domain socket. </p> </blockquote>
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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