pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alban Hertroys <haramrae@gmail.com>
To: Nicola Contu <nicola.contu@gmail.com>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Centos 6.9 and centos 7
Date: Mon, 4 Dec 2017 22:02:25 +0100
Message-ID: <CE3C09E1-A7ED-44CE-B88A-57E0401A4424@gmail.com> (raw)
In-Reply-To: <CAMTZZh1LKdUhDQ3-0+XjEaQ98RSgc_TgF+yyvDe_g6L5PrmpdA@mail.gmail.com>
References: <CAMTZZh0qVJ6fe7CV_Pxw8Yg4BhWycv-1EvWLuHQTNG47T9Rotw@mail.gmail.com>
	<4663621c-d667-dcb1-8652-afdb5a6b1718@2ndquadrant.com>
	<CAF-3MvMS6DVnBsbZcCaUruWSbdMnqEgCH-t0XJG7r8NeGenVuA@mail.gmail.com>
	<CAMTZZh1LKdUhDQ3-0+XjEaQ98RSgc_TgF+yyvDe_g6L5PrmpdA@mail.gmail.com>


> On 4 Dec 2017, at 16:57, Nicola Contu <nicola.contu@gmail.com> wrote:
> 
> 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.





view thread (9+ messages)

Message-ID: <CE3C09E1-A7ED-44CE-B88A-57E0401A4424@gmail.com>
Permalink:  ../CE3C09E1-A7ED-44CE-B88A-57E0401A4424@gmail.com/
Also on:    postgresql.org/message-id/CE3C09E1-A7ED-44CE-B88A-57E0401A4424@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: haramrae@gmail.com, nicola.contu@gmail.com, tomas.vondra@2ndquadrant.com
  Subject: Re: Centos 6.9 and centos 7
  In-Reply-To: <CE3C09E1-A7ED-44CE-B88A-57E0401A4424@gmail.com>
  References: <CAMTZZh0qVJ6fe7CV_Pxw8Yg4BhWycv-1EvWLuHQTNG47T9Rotw@mail.gmail.com> <4663621c-d667-dcb1-8652-afdb5a6b1718@2ndquadrant.com> <CAF-3MvMS6DVnBsbZcCaUruWSbdMnqEgCH-t0XJG7r8NeGenVuA@mail.gmail.com> <CAMTZZh1LKdUhDQ3-0+XjEaQ98RSgc_TgF+yyvDe_g6L5PrmpdA@mail.gmail.com> <CE3C09E1-A7ED-44CE-B88A-57E0401A4424@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox