Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIN4F-0000li-Vr for pgsql-performance@arkaria.postgresql.org; Wed, 29 Jun 2016 21:30:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bIN4F-0008Ok-Hf for pgsql-performance@arkaria.postgresql.org; Wed, 29 Jun 2016 21:30:43 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bIN4E-0008OQ-Qm for pgsql-performance@postgresql.org; Wed, 29 Jun 2016 21:30:42 +0000 Received: from mail-vk0-x22a.google.com ([2607:f8b0:400c:c05::22a]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bIN49-0004Dt-WD for pgsql-performance@postgresql.org; Wed, 29 Jun 2016 21:30:42 +0000 Received: by mail-vk0-x22a.google.com with SMTP id m127so24465697vkb.3 for ; Wed, 29 Jun 2016 14:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jjdfhY1nqbBZnFpZORY6Sc8aP5Tpbat8gp+8Bf4I/CE=; b=MJaZGNs2Mx2AtIUd3G6GreylU7IQ3Klexzp/IS8HyM4+WiyEZVHbDjmclsP1TyLwLG wyuk+mzrzxI34dIe/xRoHIODxtgeO8AcIVCN6iwYN3/HTSff66osEWOaOjtYiCVX+40V 8ZWuL+8OBQ2x62S4V+BiIBQeWLVHSNrd/jnB7w3s4i53bCA5WJpbhhoV9yHi893cDMY7 AV8L0tdcvvYaf7UQNRlSuNZ0PaVZ8H63Oxidj1KfTrYzijwbFvQSd/G9JWlDpaRuXLJp 3iVsTrvrDO6/ahWf9dkGixibfagQ5HjQB/eJfnfZdh2Y+mdZx4qVwg7KLhctXxArkSz6 uutg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jjdfhY1nqbBZnFpZORY6Sc8aP5Tpbat8gp+8Bf4I/CE=; b=Tm+u4m7jxEgnAqtaCssI7iETFQeP22oxrp+85UTh3Asu7MkcflShcDPfXsp+HA7heM G7spsbxT3dSYhYM+dUibCLY4B7vNNuyEuzEOEk0Mu4UwptL1ZVBkdafabJ5FlbQfEe7u cbwL4qKW5fK0GtwBon47fuuqHjGUXh2gSMfQ9c1NyMQeUBAEXxgbdWw8/YC8/Z8ujme5 IwKkxZgc/mA9hFA5xh/HzZtUebVgnS7miV19AxUF/+PhH01MA3iSNajvx149j0QtTo4j VO7ww6O8iauNzaySGNUpchpnK3QYVQXCLPT+LmAM+gPNhzs0gn6PsyGOuP1IY2+f9c0V JWng== X-Gm-Message-State: ALyK8tIdy4Ze4mhaD/NJblk0LowqbC0qvEkJ50/b2eFaM3Nfqsi/ovXKD9HU56WHb58e941gVb1P/FoafJ6zNw== X-Received: by 10.176.68.167 with SMTP id n36mr5108930uan.44.1467235836000; Wed, 29 Jun 2016 14:30:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.131.204 with HTTP; Wed, 29 Jun 2016 14:30:35 -0700 (PDT) In-Reply-To: References: From: Jeff Janes Date: Wed, 29 Jun 2016 14:30:35 -0700 Message-ID: Subject: Re: Random slow queries To: devel.brain99@xoxy.net Cc: "pgsql-performance@postgresql.org" Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On Tue, Jun 28, 2016 at 6:24 PM, wrote: > > > PostgreSQL version: > PostgreSQL 9.3.4, compiled by Visual C++ build 1600, 64-bit The current minor version of that branch is 9.3.13, so you are 9 bug fix releases behind. I don't know if this matters, because I see that my first guess of your problem was fixed in commit 4162a55c77cbb54acb4ac442e, which was already included in 9.3.4. (Yes, you did say you also observed the problem in 9.5.3, but still, why intentionally run something that far behind?) > Things I tried: > - Upgrading to PostgreSQL 9.5.3, compiled by Visual C++ build 1800, 64-bit > This did not solve the problem, queries still take 122 seconds from time to > time Could you try 9.6beta2? In particular, I am wondering if your problem was solved by commit 8a7d0701814a4e293efad22091d6f6fb441bbe1c Author: Tom Lane Date: Wed Aug 26 18:18:57 2015 -0400 Speed up HeapTupleSatisfiesMVCC() by replacing the XID-in-progress test. I am not entirely sure why this (as opposed to the previous-mentioned 4162a55c77cbb54) would fix a problem occurring during BIND, though. Cheers, Jeff -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance