Re: [HELP] Reset postgres server - Mailing list pgsql-general

From Adrian Klaver
Subject Re: [HELP] Reset postgres server
Date
Msg-id 9f9e27c8-4f75-8d33-c6be-8e06d86d70a1@aklaver.com
Whole thread Raw
In response to [HELP] Reset postgres server  (Praveen Kumar K S <praveenssit@gmail.com>)
Responses Re: [HELP] Reset postgres server
List pgsql-general
On 6/10/20 5:33 AM, Praveen Kumar K S wrote:
> Hello,
> 
> I have a master and slave setup running and sometimes we have to do a 
> complete refresh on dev environments. How can I reset postgres server so 
> that it wipes out everything including WAL ? So that I configure 
> master/slave streaming replication again from scratch ? TIA.

Are both servers part of the dev setup?

If so would deleting the content of $PGDATA and then doing an initdb on 
it work?
To make above easier I would keep a copies of the *.conf files where you 
could copy them back into $PGDATA after the initdb.

> 
> -- 
> *Regards,
> 
> *
> *K S Praveen Kumar
> 
> *


-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Help with plpython3u
Next
From: "Winfield, Steven"
Date:
Subject: Parallel safety of contrib extensions