pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: W.P. <laurentp@wp.pl>
To: pgsql-general@lists.postgresql.org
Subject: Re: Problem with PG 11 database on OrangePi3 (ARMBIAN, ARM64) after disk disrupion (problem with USB disk connection)
Date: Fri, 8 Apr 2022 19:18:37 +0200
Message-ID: <0b607694-8fb2-7250-4188-67672c787cd6@wp.pl> (raw)
In-Reply-To: <8eb675fa-f4cc-361a-23c5-76657450d6e7@wp.pl>
References: <9ff52fa7-a125-1225-0e23-c22f034ceb91@wp.pl>
	<b123a315432c8fafdfa1421ae6dd89f5d4e208e1.camel@cybertec.at>
	<5f2de1ce-4b22-59d1-178e-71cb6a3bfc02@wp.pl>
	<ee6df0a2-50e5-b241-0186-c8560fff91c4@gmail.com>
	<4a3ef3ed-7591-2195-e3a9-d7ff5e0331b6@wp.pl>
	<425a7834-a132-2ef8-e199-ea6c088b3ac6@aklaver.com>
	<8eb675fa-f4cc-361a-23c5-76657450d6e7@wp.pl>

 > If it is experimental you could try pg_resetwal:
>>
>> https://www.postgresql.org/docs/11/app-pgresetwal.html
>>
>
> Found this, had to use -f (program hint), but no luck. Same error.
>
> Is there anything else?
>
Problem stille here: during restore (from pg_dumpall on 11 on i386) 
server on OPi crashed during CREATE INDEX phase. Some indexes and 
triggers are missing.

SQL file has 16GB...

How can I prevent this in future (1), and (2) how to repair (maybe doing 
dump/restore again?) the "slave" database?

I'd like to have a replica of my DB on laptop, especially after seeing 
unrecoverable crash on OPi...


Laurent



> [BTW my "logical restore" runs already 9h... still making indexes, DB 
> is not very large, on i386 ~50GB]
>
>
> Laurent
>
>
>> Read all the way through for the ifs/ands/buts.
>>
>>> If it is not possible to get rid ("somehow") of this "replication 
>>> error", I will do a "logic restore" -> I have similar database on my 
>>> laptop, so I'll get a pg_dumpall from this one, then recreate fresh 
>>> DB on OPi and restore from SQL.
>>>
>>>
>>> It looks that DATA in PG DB is protected by various mechanisms very 
>>> well, but "dictionary data" (in this case replication data) is not 
>>> (as much). And in my case ext4 recovery mechanisms failed.
>>>
>>> This makes me logical replication more appealing.
>>>
>>>
>>> Laurent
>>>
>>>
>>>
>>
>>
>
>
>






view thread (11+ messages)

Message-ID: <0b607694-8fb2-7250-4188-67672c787cd6@wp.pl>
Permalink:  ../0b607694-8fb2-7250-4188-67672c787cd6@wp.pl/
Also on:    postgresql.org/message-id/0b607694-8fb2-7250-4188-67672c787cd6@wp.pl

 · 

reply

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: laurentp@wp.pl
  Subject: Re: Problem with PG 11 database on OrangePi3 (ARMBIAN, ARM64) after disk disrupion (problem with USB disk connection)
  In-Reply-To: <0b607694-8fb2-7250-4188-67672c787cd6@wp.pl>
  References: <9ff52fa7-a125-1225-0e23-c22f034ceb91@wp.pl> <b123a315432c8fafdfa1421ae6dd89f5d4e208e1.camel@cybertec.at> <5f2de1ce-4b22-59d1-178e-71cb6a3bfc02@wp.pl> <ee6df0a2-50e5-b241-0186-c8560fff91c4@gmail.com> <4a3ef3ed-7591-2195-e3a9-d7ff5e0331b6@wp.pl> <425a7834-a132-2ef8-e199-ea6c088b3ac6@aklaver.com> <8eb675fa-f4cc-361a-23c5-76657450d6e7@wp.pl> <0b607694-8fb2-7250-4188-67672c787cd6@wp.pl>

* 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