Re: [HELP] Reset postgres server

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Praveen Kumar K S <praveenssit(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: [HELP] Reset postgres server
Date: 2020-06-10 14:20:45
Message-ID: 9f9e27c8-4f75-8d33-c6be-8e06d86d70a1@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Winfield, Steven 2020-06-10 14:35:40 Parallel safety of contrib extensions
Previous Message Adrian Klaver 2020-06-10 14:08:41 Re: Help with plpython3u