pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Helmut Bender <pgsql@helmut-bender.de>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Segmentation fault on startup
Date: Mon, 01 Feb 2021 15:40:27 -0500
Message-ID: <3420507.1612212027@sss.pgh.pa.us> (raw)
In-Reply-To: <f95597ab-228d-f023-888f-7683668823cf@helmut-bender.de>
References: <f95597ab-228d-f023-888f-7683668823cf@helmut-bender.de>

Helmut Bender <pgsql@helmut-bender.de> writes:
> I'm running a nextcloud server in a docker container on an RasPi 4 (only 
> SSD, no SD), which uses PostgreSQL 10 as server.

10.what?  We're already up to 15 patch releases for that branch.

> Today I had to restart the RasPi. Now the container fails to start with 
> a segmentation violation.

Not good --- sounds like you have data corruption.  After an OS crash
this is something that's quite possible if you haven't taken the time
to qualify the storage subsystem's honoring of fsync.

It is barely possible that it's a PG bug that we've fixed, so if you
are not on 10.15 then an update would be worth trying.  But I don't
have a lot of hope for that.

> I have a dump of the data, but without running server I can't do 
> anything with it either...

If it's a reasonably recent dump, you might end up just having to
re-initdb and restore the dump.

If the missing data is very valuable to you, there are people around
who specialize in trying to recover data from corrupted databases
(see "Professional Services" on our website).  But it's expensive
and there's no guarantee how much can be recovered.

As with all else computer-related, there's no substitute for a
good backup plan :-(

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <3420507.1612212027@sss.pgh.pa.us>
Permalink:  ../3420507.1612212027@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3420507.1612212027@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, pgsql@helmut-bender.de
  Subject: Re: Segmentation fault on startup
  In-Reply-To: <3420507.1612212027@sss.pgh.pa.us>
  References: <f95597ab-228d-f023-888f-7683668823cf@helmut-bender.de> <3420507.1612212027@sss.pgh.pa.us>

* 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