Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d83qx-0002Kw-8F for pgsql-performance@arkaria.postgresql.org; Tue, 09 May 2017 12:02:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d83qw-0000ra-Mb for pgsql-performance@arkaria.postgresql.org; Tue, 09 May 2017 12:02:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d83qw-0000rQ-3z for pgsql-performance@postgresql.org; Tue, 09 May 2017 12:02:54 +0000 Received: from smtp05.smtpout.orange.fr ([80.12.242.127] helo=smtp.smtpout.orange.fr) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1d83qo-0003K4-Uk for pgsql-performance@postgresql.org; Tue, 09 May 2017 12:02:52 +0000 Received: from X201.home ([193.251.178.45]) by mwinf5d40 with ME id JC2j1v0030z9ZVd03C2j3x; Tue, 09 May 2017 14:02:43 +0200 X-ME-Helo: X201.home X-ME-Auth: dnYubGlzdHNAd2FuYWRvby5mcg== X-ME-Date: Tue, 09 May 2017 14:02:43 +0200 X-ME-IP: 193.251.178.45 Date: Tue, 9 May 2017 14:02:42 +0200 From: Vincent Veyron To: Scott Marlowe Cc: "pgsql-performance@postgresql.org" Subject: Re: Speed differences between two servers Message-Id: <20170509140242.b7d0fbe8f426aa5ea1f3fd8b@wanadoo.fr> In-Reply-To: References: <20170508194922.b049d1b73c8b681e982cadd9@wanadoo.fr> <20170509002441.994488df4bd1a216ec15f8e3@wanadoo.fr> X-Mailer: Sylpheed 3.5.0beta1 (GTK+ 2.24.25; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -4.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 Mon, 8 May 2017 17:35:38 -0600 Scott Marlowe wrote: > Without seeing what your test sql file does I have no idea what the > big difference in the other direction.=20 It truncates 59 tables, copies data back from a set of text files, inserts = a few single records and does a few select setval('') to reset the serial c= olumns. here it is : https://pastebin.com/LVsvFzkj >You'll have to pull out and run > the individual queries, or turn on auto explain or something to see > the plans and compare.=20 I used log_duration; it shows that the truncate and all the \copy are much = slower, while all insert/select statements are twice as fast >A lot of time it's just some simple tuning in > postgresql.conf or maybe a database got an alter database on it to > change something?=20 Server setups are identical : same software, same configurations, same data= bases. I've put in a ticket at the Online provider with the data to see if they ha= ve an answer (now 14H00 in Paris, so they may take a while to respond) --=20 Bien =E0 vous, Vincent Veyron=20 https://compta.libremen.com Logiciel libre de comptabilit=E9 g=E9n=E9rale en partie double --=20 Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance