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 1fYY8s-0001et-BT for pgsql-admin@arkaria.postgresql.org; Thu, 28 Jun 2018 14:43:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fYY8q-0004bZ-B7 for pgsql-admin@arkaria.postgresql.org; Thu, 28 Jun 2018 14:43:24 +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.89) (envelope-from ) id 1fYY8q-0004bS-3q for pgsql-admin@lists.postgresql.org; Thu, 28 Jun 2018 14:43:24 +0000 Received: from mtaout004-public.msg.strl.va.charter.net ([68.114.190.29]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fYY8n-00084J-37 for pgsql-admin@lists.postgresql.org; Thu, 28 Jun 2018 14:43:23 +0000 Received: from impout002 ([68.114.189.17]) by mtaout004.msg.strl.va.charter.net (InterMail vM.9.00.023.01 201-2473-194) with ESMTP id <20180628144318.ETZO3685.mtaout004.msg.strl.va.charter.net@impout002>; Thu, 28 Jun 2018 09:43:18 -0500 Received: from cerberus.crazybean.net ([24.151.10.150]) by impout002 with charter.net id 4EjJ1y00D3EE3TL01EjJGy; Thu, 28 Jun 2018 09:43:18 -0500 X-Authority-Analysis: v=2.2 cv=C6eZ8UH+ c=1 sm=1 tr=0 a=D2HTw/M6/8MmcHighGO7rg==:117 a=D2HTw/M6/8MmcHighGO7rg==:17 a=IkcTkHD0fZMA:10 a=7mUfYlMuFuIA:10 a=n73ypZCXAAAA:8 a=31rY67gwxVdYF5IISPkA:9 a=QEXdDO2ut3YA: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 4bc8e5b8 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 28 Jun 2018 10:43:18 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: [External] Re: standby replication server throws invalid memory alloc request size , does not start up From: Rui DeSousa In-Reply-To: <16835199-C26C-4962-B1BD-3B9766770FAA@opentable.com> Date: Thu, 28 Jun 2018 10:43:16 -0400 Cc: Scott Ribe , "pgsql-admin@lists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <3B059AC5-D674-4D97-9E28-6B17A3FF73D4@crazybean.net> References: <1E4C5445-F307-4AE9-B1B9-C85A38B0D930@opentable.com> <8F8408A0-7FEB-4F32-8E76-F7429DA0B481@elevated-dev.com> <16835199-C26C-4962-B1BD-3B9766770FAA@opentable.com> To: Vijaykumar Jain X-Mailer: Apple Mail (2.3445.8.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Jun 28, 2018, at 9:47 AM, Vijaykumar Jain = wrote: >=20 > Thanks Scott. >=20 > fsync is on. >=20 > postgres=3D# show fsync; > fsync > ------- > on > (1 row) >=20 Yeah, I agree with Scott; it sounds like fsync() is being shorted = somewhere in the I/O path. Are you using a RAID controller; if so is = the cache setting =E2=80=94 write through or write back? If it=E2=80=99s = write back then writes are being cached and a power outage will lead to = data corruption =E2=80=94 the only saving grace at that point would be = the battery backup logic on the controller which may or nay not be = trustworthy.