Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLxsp-0007un-5f for pgsql-general@arkaria.postgresql.org; Mon, 04 Dec 2017 21:02:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLxso-0005ST-4R for pgsql-general@arkaria.postgresql.org; Mon, 04 Dec 2017 21:02:34 +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 1eLxsn-0005SJ-RO for pgsql-general@lists.postgresql.org; Mon, 04 Dec 2017 21:02:33 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eLxsl-00057p-91 for pgsql-general@lists.postgresql.org; Mon, 04 Dec 2017 21:02:33 +0000 Received: by mail-wm0-x241.google.com with SMTP id t8so8302911wmc.3 for ; Mon, 04 Dec 2017 13:02:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=thyRV013H+oul14Iwu167ExdBYL5WwCRjiHu/oFeiEw=; b=sC7CpRdyjiGIneXiSiy8zhuXYCAZLVly1L22EdgwChqZ9rwTw9L8vFnwceA+zYf8/J 1XETlKPHUWrXQDcDxaVTse3/2dfhJ/+Y7lRYiMEhHvP/k9jFQRbdMvYaE8oH9P6rcPzb v2B8sFqNlWnbqBhXSx3He6O7V7kG1NBYJ21QgCKOVtTMGvAbctojCFxusbuRrx1VzhdS KaiZmkWpY6BD6YuN9zVNnmHvtVqgOpeQt/2ObNMmD4aMfolYyTkCpob1/qf+hL0j70hS Lj9DCzqsBQPrnvpU3iK5CL+bcibva3DzxR2cxG0KRBuAg+x42xvhFW6Vtr0diVvEpiLZ 9oQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=thyRV013H+oul14Iwu167ExdBYL5WwCRjiHu/oFeiEw=; b=Vicu1KKA5GXSX7W5Nxt79dcKUyJoB28/7+iHIAJ2u95+jaId5iNskzYlBKet8zBzxn WLX4vnYUZ2Pw58A0jN8T66+C2huNNFxx5ruv0go6RUFO/6y/OI1R6Ls2ErnIslswheid JDnhyzbIX+zr0Xyio4X+PLAUy9tyzuPLHHlcAPrFc83AFAyb+cDKJvvdA4PYhbc+sEWH Namlk+BU4r/rCDKmCdz6RcjVjmmceHp44lPxg/DnvvjnznmDDYff3hjdnb5fAN5Z/SUh lLo7StuXQWGdl8oa2Zt2i7WLzTPrlUxN/KSfCWn6PJH66IfK3fK3poYnHoMDPDRULip0 EW+w== X-Gm-Message-State: AJaThX7zcewXQfSaQR2ix5103J5QGJcF8RaGx0bwUtA8eNDgH5yXMSrz nVk0rUyun26uG6PQ/Ker15I= X-Google-Smtp-Source: AGs4zMYQnPoKwJOGJS6Q3zgUU9qO+VwFMmMqUzdxzjd4Vl79NYE6Afyi+Mt+BT8C54bAw3jDnj6tkw== X-Received: by 10.80.140.176 with SMTP id q45mr33889756edq.186.1512421347709; Mon, 04 Dec 2017 13:02:27 -0800 (PST) Received: from hollewijn.internal (84-245-13-9.dsl.cambrium.nl. [84.245.13.9]) by smtp.gmail.com with ESMTPSA id g20sm8638828edb.75.2017.12.04.13.02.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Dec 2017 13:02:26 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Subject: Re: Centos 6.9 and centos 7 From: Alban Hertroys In-Reply-To: Date: Mon, 4 Dec 2017 22:02:25 +0100 Cc: Tomas Vondra , pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <4663621c-d667-dcb1-8652-afdb5a6b1718@2ndquadrant.com> To: Nicola Contu X-Mailer: Apple Mail (2.3445.4.7) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On 4 Dec 2017, at 16:57, Nicola Contu wrote: >=20 > No I did not run a vacuum analyze. Do you want me to try with that = first? That means your statistics may not be up to date, although by now = autovacuum should have done the job (you didn't turn that off or = anything, did you?). Bad statistics result in non-optimal query plans = and therefore could very well cause your timing differences. An easy way to verify, since you still have access to both versions of = the database, is to compare the statistics of the relevant tables = between the two. They should be similar. Alban Hertroys -- If you can't see the forest for the trees, cut the trees and you'll find there is no forest.