From: Michael Paquier <michael@paquier.xyz>
To: live-school support <infos@live-school.net>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Reuse an existing slot with a new initdb
Date: Thu, 14 May 2020 12:52:34 +0900
Message-ID: <20200514035234.GC166343@paquier.xyz> (raw)
In-Reply-To: <779da3eb-6762-dbb8-3019-8c8515bf7397@live-school.net>
References: <5f198805-8fd4-b49b-4046-e98fb80dea74@e-blokos.com>
<48699aec-7736-6b8a-cd92-fe6d93db6a78@e-blokos.com>
<48434f500ee2bf9572e6bbff143be073114f8c42.camel@cybertec.at>
<779da3eb-6762-dbb8-3019-8c8515bf7397@live-school.net>
On Wed, May 13, 2020 at 02:12:45PM -0700, live-school support wrote:
> I didn't recal that it was not possible to create a hot standby with a fresh
> new install and pg_dumpall :(.
>
> only pg_basebackup or an exact copy of the data folder can do it right? is
> the reason technical or else?
When using physical replication, both the primary and standby need to
have the same system ID, and both instances need to share the same
architectures to work properly as data is physically replayed from one
cluster to the other using WAL, which includes for example copies of
on disk relation 8kB pages (ever heard of full_page_writes?).
Like Laurenz, I am not sure what is your problem, what are the errors
PostgreSQL are producing and what you expect from Postgres. If you
could describe clearly step-by-step what you are doing and what you
expect the result would be based on your configuration, we may be able
to help, but it is not really possible to help out without more
details. For example, the first sentence of your first email mentions
the use of replication slots. You may want to explain better where
the slots are used, how they get either dropped and/or recreated, etc.
-
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: michael@paquier.xyz, infos@live-school.net
Subject: Re: Reuse an existing slot with a new initdb
In-Reply-To: <20200514035234.GC166343@paquier.xyz>
References: <5f198805-8fd4-b49b-4046-e98fb80dea74@e-blokos.com> <48699aec-7736-6b8a-cd92-fe6d93db6a78@e-blokos.com> <48434f500ee2bf9572e6bbff143be073114f8c42.camel@cybertec.at> <779da3eb-6762-dbb8-3019-8c8515bf7397@live-school.net> <20200514035234.GC166343@paquier.xyz>
* 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