From: Ben Chobot <bench@silentmedia.com>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: 12.3 replicas falling over during WAL redo
Date: Mon, 3 Aug 2020 15:10:49 -0700
Message-ID: <8cb30a3b-72a6-512a-7ce4-dce671c76379@silentmedia.com> (raw)
In-Reply-To: <CAH2-Wzk3Dp9PFaQjQ3broCbGT=UB2Deau=kPY5_gqYjqvGwb=g@mail.gmail.com>
References: <f0990521-9839-5317-a91a-66bd919f5202@silentmedia.com>
<20200803213454.GA32739@alvherre.pgsql>
<CAH2-Wzk3Dp9PFaQjQ3broCbGT=UB2Deau=kPY5_gqYjqvGwb=g@mail.gmail.com>
Peter Geoghegan wrote on 8/3/20 3:04 PM:
> On Mon, Aug 3, 2020 at 2:35 PM Alvaro Herrera <alvherre@2ndquadrant.com> wrote:
>> You can use pageinspect's page_header() function to obtain the page's
>> LSN. You can use dd to obtain the page from the file,
>>
>> dd if=16605/16613/60529051 bs=8192 count=1 seek=6501 of=/tmp/page.6501
> Ben might find this approach to dumping out a single page image
> easier, since it doesn't involve relfilenodes or filesystem files:
>
> https://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Linux/BSD#...
I don't think that works, because it sounds like this requires I connect
to the db, but that means I have to start it up. I am (wrongly?)
assuming we should get what we can while the db is still in a
just-crashed state.
Still, I seem to have mangled Alvaro's suggestion somehow, because this
doesn't look right:
# select h.* from public.page , page_header(raw) h;
lsn | checksum | flags | lower | upper | special | pagesize | version
| prune_xid
-----+----------+-------+-------+-------+---------+----------+---------+-----------
0/0 | 0 | 0 | 0 | 0 | 0 | 0 | 0
| 0
(1 row)
I'll keep trying though.
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: bench@silentmedia.com, pg@bowt.ie, alvherre@2ndquadrant.com
Subject: Re: 12.3 replicas falling over during WAL redo
In-Reply-To: <8cb30a3b-72a6-512a-7ce4-dce671c76379@silentmedia.com>
References: <f0990521-9839-5317-a91a-66bd919f5202@silentmedia.com> <20200803213454.GA32739@alvherre.pgsql> <CAH2-Wzk3Dp9PFaQjQ3broCbGT=UB2Deau=kPY5_gqYjqvGwb=g@mail.gmail.com> <8cb30a3b-72a6-512a-7ce4-dce671c76379@silentmedia.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