pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 15:36:53 -0700
Message-ID: <aca93e88-e293-a03e-f29e-089eac69c111@aklaver.com> (raw)
In-Reply-To: <CAE3EmBDncwAX-i0z3w4_Q-k5svi8kSFxauwFD19k-bXVe5JoLw@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>
	<CAE3EmBAiB6w6Zg3QOxzd=f6C7TGWH+5bSaW++Vn=v1cbCqmULg@mail.gmail.com>
	<d2dc9b50-af1f-8b0e-0e3f-264d72a62eab@aklaver.com>
	<CAE3EmBDE2=0dPJhTpcdyieKjHMs1-M6E+Da23vYQkH+FVyUJyQ@mail.gmail.com>
	<CAE3EmBDncwAX-i0z3w4_Q-k5svi8kSFxauwFD19k-bXVe5JoLw@mail.gmail.com>

On 6/1/19 3:14 PM, Tom K wrote:
> 
> 

> ** Correction.  There is postgres, template1 and template2 but none of 
> the other databases we had.

In a psql session do:

select oid, datname from pg_database ;

Then go to /data/patroni an drill down to the base directory. In that 
directory there should be sub-directories with numbers equal to the oid 
values from the query. If not then something is wrong. That could be:

1) Wrong data directory.

2) Copied over incorrect data directory.

Basically if the only sub-directories are for the system databases then 
the user databases do not exist. You might want to look at some of the 
other clusters to see what is there.



-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (40+ messages)  latest in thread

Message-ID: <aca93e88-e293-a03e-f29e-089eac69c111@aklaver.com>
Permalink:  ../aca93e88-e293-a03e-f29e-089eac69c111@aklaver.com/
Also on:    postgresql.org/message-id/aca93e88-e293-a03e-f29e-089eac69c111@aklaver.com

 · 

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: adrian.klaver@aklaver.com, tomkcpr@gmail.com
  Subject: Re: psql: FATAL: the database system is starting up
  In-Reply-To: <aca93e88-e293-a03e-f29e-089eac69c111@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> <CAE3EmBAiB6w6Zg3QOxzd=f6C7TGWH+5bSaW++Vn=v1cbCqmULg@mail.gmail.com> <d2dc9b50-af1f-8b0e-0e3f-264d72a62eab@aklaver.com> <CAE3EmBDE2=0dPJhTpcdyieKjHMs1-M6E+Da23vYQkH+FVyUJyQ@mail.gmail.com> <CAE3EmBDncwAX-i0z3w4_Q-k5svi8kSFxauwFD19k-bXVe5JoLw@mail.gmail.com> <aca93e88-e293-a03e-f29e-089eac69c111@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