From: Vijaykumar Jain <vjain@opentable.com>
To: Andres Freund <andres@anarazel.de>
To: Scott Ribe <scott_ribe@elevated-dev.com>
Cc: Rui DeSousa <rui@crazybean.net>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: [External] Re: standby replication server throws invalid memory alloc request size , does not start up
Date: Thu, 28 Jun 2018 17:00:23 +0000
Message-ID: <32F711D3-8BD7-44E7-A6B8-A0C9711AF6C2@opentable.com> (raw)
In-Reply-To: <20180628164633.uyhnlid7odwopkmv@alap3.anarazel.de>
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>
<FE27233A-B777-4292-B560-E0EBA251D22F@elevated-dev.com>
<20180628164633.uyhnlid7odwopkmv@alap3.anarazel.de>
The server was destroyed.
But did copy the pg_data folder and restored it on the test server.
It failed with similar error. Will that do.
I do have some very high (DEBUG5) level logs in my console along with strace (postgresql start) logs.
Not sure if this is ok to paste in the mail (it will not be readable)
On 6/28/18, 10:16 PM, "Andres Freund" <andres@anarazel.de> wrote:
Hi,
On 2018-06-28 10:43:16 -0600, Scott Ribe wrote:
> > On Jun 28, 2018, at 10:36 AM, 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.. ?
>
> There could always be a postgres bug, however misconfigured cache
> layers are a very common cause of this kind of symptom, and postgres
> bugs very rare.
Sure, but it's also easy to not find postgres bugs if you don't
investigate. If the error comes from parsing WAL - which is likely but
not guaranteed from the log output - then it's unlikely the error is
caused by on-disk corruption. The WAL is protected by a CRC checksum,
and if it fails, you don't get to the memory allocation bit.
> I don't believe pg_resetxlog would cause this particular
> problem. Failure to recovery yes, but not illegal memory operation.
It can. Not as a result of reading WAL itself, but as a result of the
resulting corruption. That's why I asked for debugging output.
- Andres
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-admin@postgresql.org
Cc: vjain@opentable.com, andres@anarazel.de, scott_ribe@elevated-dev.com, rui@crazybean.net
Subject: Re: [External] Re: standby replication server throws invalid memory alloc request size , does not start up
In-Reply-To: <32F711D3-8BD7-44E7-A6B8-A0C9711AF6C2@opentable.com>
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> <FE27233A-B777-4292-B560-E0EBA251D22F@elevated-dev.com> <20180628164633.uyhnlid7odwopkmv@alap3.anarazel.de> <32F711D3-8BD7-44E7-A6B8-A0C9711AF6C2@opentable.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