Re: How to start slave after pg_basebackup. Why min_wal_size and wal_keep_segments are duplicated

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Andrus <kobruleht2(at)hot(dot)ee>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to start slave after pg_basebackup. Why min_wal_size and wal_keep_segments are duplicated
Date: 2020-06-01 00:29:05
Message-ID: 16629afe-a53c-76e4-ef1e-a0a5ceba2d71@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stefan Knecht 2020-06-01 05:36:14 Re: Oracle vs. PostgreSQL - a comment
Previous Message Rene Romero Benavides 2020-06-01 00:06:10 Re: Suggestion to Monitoring Tool