pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Andrus <kobruleht2@hot.ee>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: How to start slave after pg_basebackup. Why min_wal_size and wal_keep_segments are duplicated
Date: Sun, 31 May 2020 17:29:05 -0700
Message-ID: <16629afe-a53c-76e4-ef1e-a0a5ceba2d71@aklaver.com> (raw)
In-Reply-To: <246B62BD5BB44DCE8AEB15CA9723CDCE@dell2>
References: <26EC9619620649D1B55C9C95811E4ADB@dell2>
	<16e57e3f-5c26-fd55-d42a-f030c8550952@aklaver.com>
	<102C5FA16F1549659B393B6A824B561F@dell2>
	<698dbad1-e3b2-f13a-8e97-8ce01efed516@aklaver.com>
	<246B62BD5BB44DCE8AEB15CA9723CDCE@dell2>

On 5/31/20 2:43 PM, Andrus wrote:
> Hi!
> 
>> In addition to my most recent questions:
>> What are you trying to achieve?
> 
> I want to create  hot standby async server using
> /etc/init.d/postgresql stop
> mv /var/lib/postgresql/12/main /var/lib/postgresql/12/mainold
> pg_basebackup --write-recovery-conf -D /var/lib/postgresql/12/main

I don't see where the base backup is being taken from just where it is 
going.

> chmod --recursive --verbose 0700 /var/lib/postgresql/12/main
> chown -Rv postgres:postgres /var/lib/postgresql/12/main
> /etc/init.d/postgresql start
> 
>> In other words why do a pg_basebackup if you have a standby receiving 
>> WALs?
> 
> I dont receive WALs.

If you are doing binary replication then you are receiving WALs. It just 
a matter of whether you are streaming them or shipping them over complete.

> 
> Andrus.


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (17+ messages)  latest in thread

Message-ID: <16629afe-a53c-76e4-ef1e-a0a5ceba2d71@aklaver.com>
Permalink:  ../16629afe-a53c-76e4-ef1e-a0a5ceba2d71@aklaver.com/
Also on:    postgresql.org/message-id/16629afe-a53c-76e4-ef1e-a0a5ceba2d71@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, kobruleht2@hot.ee
  Subject: Re: How to start slave after pg_basebackup. Why min_wal_size and wal_keep_segments are duplicated
  In-Reply-To: <16629afe-a53c-76e4-ef1e-a0a5ceba2d71@aklaver.com>
  References: <26EC9619620649D1B55C9C95811E4ADB@dell2> <16e57e3f-5c26-fd55-d42a-f030c8550952@aklaver.com> <102C5FA16F1549659B393B6A824B561F@dell2> <698dbad1-e3b2-f13a-8e97-8ce01efed516@aklaver.com> <246B62BD5BB44DCE8AEB15CA9723CDCE@dell2> <16629afe-a53c-76e4-ef1e-a0a5ceba2d71@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