From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tom K <tomkcpr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: psql: FATAL: the database system is starting up
Date: Sat, 1 Jun 2019 14:46:27 -0700
Message-ID: <8fb107a7-58e4-99ed-a0b3-04d739c162ff@aklaver.com> (raw)
In-Reply-To: <CAE3EmBDq7aQ5kXdfZ0uXgoYScMHSntrVLSnNnUVM08_U=18aCQ@mail.gmail.com>
References: <CAE3EmBDX+TRLot5Ar6fJwV_QazSrbQ8JmWb9ZhGtj9wgtu7c_g@mail.gmail.com>
<5b7e0d74-8d6e-c3b8-fb62-3aab1fe0145d@aklaver.com>
<CAE3EmBC5biD+xPEHfGWg0iuTojhWvJrREnSh-3AViQmOsOx9ZQ@mail.gmail.com>
<76851993-4826-f300-85ac-42d8b705a56f@aklaver.com>
<CAE3EmBAfMa=eA1LqBB0zf-kZwBPTbRhzY5wUxcPYNQ8hathDQA@mail.gmail.com>
<43b5c459-6ee4-c8ec-c402-47ea92738c86@aklaver.com>
<CAE3EmBD+LN3Mx2W2MbqANt=oaZ6dBDDn-o3a=01naM6at8PZ9w@mail.gmail.com>
<CAE3EmBC0MAz7JetpL=JzCL9unBSUko6Q0HKKwFArLb6gXMfEhw@mail.gmail.com>
<be3dec87-807c-f066-cad9-9c3d29f36a76@aklaver.com>
<CAE3EmBDq7aQ5kXdfZ0uXgoYScMHSntrVLSnNnUVM08_U=18aCQ@mail.gmail.com>
On 6/1/19 2:30 PM, Tom K wrote:
>
>
> On Sat, Jun 1, 2019 at 4:52 PM Adrian Klaver <adrian.klaver@aklaver.com
> <mailto:adrian.klaver@aklaver.com>> wrote:
>
> On 6/1/19 12:42 PM, Tom K wrote:
> >
> >
>
> >
> > Of note are the characters f2W below. I see nothing in the postgres
> > source code to indicate this is any recognizable postgres
> message. A
> > part of me suspects that the postgres binaries got corrupted.
> Had this
> > case occur with glib-common and a reinstall fixed it. However the
> > postgres binaries csum matches a standalone install perfectly so
> that
> > should not be an issue.
>
> It comes from timeline.c:
>
> https://doxygen.postgresql.org/bin_2pg__rewind_2timeline_8c.html
>
> pg_log_error("syntax error in history file: %s", fline);
>
> ...
>
> There should be another error message after the above.
>
>
> Nope. Here's the full set of lines in the postgres logs when running
> the above line:
>
> 2019-06-01 17:13:03.263 EDT [14909] FATAL: syntax error in history
> file: f2W
> 2019-06-01 17:13:03.263 EDT [14909] HINT: Expected a numeric timeline ID.
Actually the above HINT is what I was looking for.
> ^C
> -bash-4.2$
>
> What's interesting is that f2W isn't a string you'd expect to be printed
> as part of the code logic ( I mean, what is f2W? ).
As the HINT said neither was Postgres. That is probably down to file
corruption.
>
> The point of the POC and the LAB is to test these things across failures
> as well as various configurations. To that end, I'm just as curious how
> to recover from these error conditions as I am just getting things to work.
I think what it proved was that a single point of failure is not good
and that there needs to be steps taken to prevent or deal with it e.g.
second location backup of some sort.
>
>
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, tomkcpr@gmail.com
Subject: Re: psql: FATAL: the database system is starting up
In-Reply-To: <8fb107a7-58e4-99ed-a0b3-04d739c162ff@aklaver.com>
References: <CAE3EmBDX+TRLot5Ar6fJwV_QazSrbQ8JmWb9ZhGtj9wgtu7c_g@mail.gmail.com> <5b7e0d74-8d6e-c3b8-fb62-3aab1fe0145d@aklaver.com> <CAE3EmBC5biD+xPEHfGWg0iuTojhWvJrREnSh-3AViQmOsOx9ZQ@mail.gmail.com> <76851993-4826-f300-85ac-42d8b705a56f@aklaver.com> <CAE3EmBAfMa=eA1LqBB0zf-kZwBPTbRhzY5wUxcPYNQ8hathDQA@mail.gmail.com> <43b5c459-6ee4-c8ec-c402-47ea92738c86@aklaver.com> <CAE3EmBD+LN3Mx2W2MbqANt=oaZ6dBDDn-o3a=01naM6at8PZ9w@mail.gmail.com> <CAE3EmBC0MAz7JetpL=JzCL9unBSUko6Q0HKKwFArLb6gXMfEhw@mail.gmail.com> <be3dec87-807c-f066-cad9-9c3d29f36a76@aklaver.com> <CAE3EmBDq7aQ5kXdfZ0uXgoYScMHSntrVLSnNnUVM08_U=18aCQ@mail.gmail.com> <8fb107a7-58e4-99ed-a0b3-04d739c162ff@aklaver.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