Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fYau7-0003su-Ew for pgsql-admin@arkaria.postgresql.org; Thu, 28 Jun 2018 17:40:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fYau4-0004jq-M8 for pgsql-admin@arkaria.postgresql.org; Thu, 28 Jun 2018 17:40:20 +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.89) (envelope-from ) id 1fYau4-0004ii-8m for pgsql-admin@lists.postgresql.org; Thu, 28 Jun 2018 17:40:20 +0000 Received: from mtaout006-public.msg.strl.va.charter.net ([68.114.190.31]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fYau1-00037H-4Q for pgsql-admin@lists.postgresql.org; Thu, 28 Jun 2018 17:40:18 +0000 Received: from impout004 ([68.114.189.19]) by mtaout006.msg.strl.va.charter.net (InterMail vM.9.00.023.01 201-2473-194) with ESMTP id <20180628174015.OUTJ7358.mtaout006.msg.strl.va.charter.net@impout004>; Thu, 28 Jun 2018 12:40:15 -0500 Received: from cerberus.crazybean.net ([24.151.10.150]) by impout004 with charter.net id 4HgF1y0053EE3TL01HgFST; Thu, 28 Jun 2018 12:40:15 -0500 X-Authority-Analysis: v=2.2 cv=Cat43Pjl c=1 sm=1 tr=0 a=D2HTw/M6/8MmcHighGO7rg==:117 a=D2HTw/M6/8MmcHighGO7rg==:17 a=7mUfYlMuFuIA:10 a=5L2DKPm655cikl5FwtoA:9 a=QEXdDO2ut3YA:10 a=tf2P8P9lzQSImbUXfK8A:9 a=In45APSF198CDMag:21 a=_W_S_7VecoQA:10 Received: from [10.25.227.111] (144.121.139.193.lightower.net [144.121.139.193]) by cerberus.crazybean.net (OpenSMTPD) with ESMTPSA id ba075e91 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 28 Jun 2018 13:40:14 -0400 (EDT) From: Rui DeSousa Message-Id: <269E778E-21FC-4EA4-846D-52C896E38CDB@crazybean.net> Content-Type: multipart/alternative; boundary="Apple-Mail=_410BF12D-486C-4B2B-B3C0-B61C08824F2E" Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: [External] standby replication server throws invalid memory alloc request size , does not start up Date: Thu, 28 Jun 2018 13:40:13 -0400 In-Reply-To: <20180628163642.lg2akxxkyplhxgni@alap3.anarazel.de> Cc: Vijaykumar Jain , Scott Ribe , "pgsql-admin@lists.postgresql.org" To: Andres Freund References: <1E4C5445-F307-4AE9-B1B9-C85A38B0D930@opentable.com> <8F8408A0-7FEB-4F32-8E76-F7429DA0B481@elevated-dev.com> <16835199-C26C-4962-B1BD-3B9766770FAA@opentable.com> <3B059AC5-D674-4D97-9E28-6B17A3FF73D4@crazybean.net> <20180628163642.lg2akxxkyplhxgni@alap3.anarazel.de> X-Mailer: Apple Mail (2.3445.8.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_410BF12D-486C-4B2B-B3C0-B61C08824F2E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jun 28, 2018, at 12:36 PM, Andres Freund = wrote: >=20 > How are you making the inference that that's the problem? It could = very > well be a postgres bug or somebody having used pg_resetxlog or.. ? >=20 Is this to me? Most RAID controllers I=E2=80=99ve seen have been setup = with write back for performance and also they also seem to have faulty = batteries. I=E2=80=99m merely stating that the I/O path needs to be validated to = insure fsync() actually works =E2=80=94 otherwise a power failure will = introduce data corruption without doubt. =20 We know the event was occurred after a power failure; and that event = would not have corrupted Postgres in a properly configured system; thus, = pointing to a misconfiguration in the system. =20 --Apple-Mail=_410BF12D-486C-4B2B-B3C0-B61C08824F2E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Jun 28, 2018, at 12:36 PM, Andres Freund <andres@anarazel.de> = wrote:

How are you making the inference = that that's the problem? It could very
well be a postgres bug or somebody having used pg_resetxlog = or.. ?


Is this to me? Most RAID controllers I=E2=80=99ve seen have = been setup with write back for performance and also they also seem to = have faulty batteries.

I=E2=80=99m merely stating that the I/O path needs to be = validated to insure fsync() actually works =E2=80=94 otherwise a power = failure will introduce data corruption without doubt.  

We know the event was = occurred after a power failure; and that event would not have corrupted = Postgres in a properly configured system; thus, pointing to a = misconfiguration in the system.



 

= --Apple-Mail=_410BF12D-486C-4B2B-B3C0-B61C08824F2E--