Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJjxx-0001gy-3U for pgsql-admin@arkaria.postgresql.org; Thu, 25 Apr 2019 19:23:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hJjxv-00085q-Se for pgsql-admin@arkaria.postgresql.org; Thu, 25 Apr 2019 19:23:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJjxv-00083r-Hh for pgsql-admin@lists.postgresql.org; Thu, 25 Apr 2019 19:23:27 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJjxr-0008Df-I9 for pgsql-admin@postgresql.org; Thu, 25 Apr 2019 19:23:26 +0000 Received: by mail-qt1-x843.google.com with SMTP id f25so1409090qtc.8 for ; Thu, 25 Apr 2019 12:23:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=ERLxMY5y1LTgNh0Jt7y1qLdOn13Col6HSXPxZTo3BjE=; b=KXGUQVxWrz8Ghxm0Btup4pGSxI7kLKkfJbEnIJcpIeFUnCECVPpD9s984I+psTNiKk 02pavflloYNMTdSKXuw7VIeXZp02odBc+ZftwbAPg7LG/xgyWc/DoDdd/EA815cQbtXq FAWHX9tjLURfdcjjAcYR5lva8Vf/zdivBCaKH793rPmxqd+JgsnhGXcPrpwvyZo1ZVLA fiGLJEBR3Vi7lYMLb09LAa66zQsroo5gvs9zS8ZVJyxsZGFYb14um2zfK5Wr75HKP2ol hrD68g69QvnhdZ4yEoiYomqto3T514mWEYRkcPNtqpKgH1YHAaKatbBExdx3InfaoKjg zcmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=ERLxMY5y1LTgNh0Jt7y1qLdOn13Col6HSXPxZTo3BjE=; b=qKr7DnaHDLZQZXv+hIpiF24+PFvLADAtSX5vW8p5nyO7BL4vUFtSReSefC/WuVvMGN bvIDjFKxeVhRbENBepjBumwoj4Yv45GW76zqanZ/jhCJKbU7TZLLNlivpttmbbUaAtFS BNTLot6ylCNA8Yc+RJsegtb7/n3ZC6nraAhLH+AFQXStJBoZuQIeSNM2E9ABCJdRkLKl z5IX2kNwTtBb8rppQZBa0k5gPXx+cAYR5CVhBAjkwK0W83NWgX3cWOPrBCfvmS8lUL0B Jf22ZoHuzFV1Vg383PGb7TjIV4jb65JwHtFfCODUC4m1dpjZjZqNF9heGtu4ae+rVP9d a4Qw== X-Gm-Message-State: APjAAAU7UDyRTfn7HVi9P5YsUIcjozFEbQ7HMOFVi28m7msBtLICLCEA 2VXRtgML5RpH7S6D2pBIjZ5KLw== X-Google-Smtp-Source: APXvYqwZdhvJo/2fj4InjULFOvYzUqSDRwlBYNqOmOi75WgiJssfFUCkLF/LAgBVRsx+bJYA30c45w== X-Received: by 2002:ac8:33eb:: with SMTP id d40mr11258649qtb.263.1556220202137; Thu, 25 Apr 2019 12:23:22 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id k65sm7043726qkc.79.2019.04.25.12.23.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Apr 2019 12:23:21 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 565071207DB; Thu, 25 Apr 2019 15:23:19 -0400 (-04) Date: Thu, 25 Apr 2019 15:23:19 -0400 From: Alvaro Herrera To: pavan95 Cc: pgsql-admin@postgresql.org Subject: Re: Too many serialization errors in production Message-ID: <20190425192319.GA8081@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190425174738.GA31344@alvherre.pgsql> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Apr-25, Alvaro Herrera wrote: > Hello > > On 2019-Apr-22, pavan95 wrote: > > > Do you mean this to be a bug? > > A bug fixed two years ago, yeah. Let me correct myself. What I fixed two years ago was some spurious occurrences of the reported message. However, the same error message can be returned in other circumstances, and I suspect many of them would not be spurious. Therefore, my suggestion is: 1. if you're on a release older than the bugfix, then upgrade and try again. 2. if you're already on a release with that problem fixed, then investigate and to determine whether (some of?) the occassions on which the error is raised are spurious. 3. if you find some occassions on which they are spurious, see if you can do something to fix that (say, increment # of predicate locks in postgresql.conf; maybe fix some other bug). -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services