pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Praveen Kumar K S <praveenssit@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: [HELP] Reset postgres server
Date: Wed, 10 Jun 2020 07:20:45 -0700
Message-ID: <9f9e27c8-4f75-8d33-c6be-8e06d86d70a1@aklaver.com> (raw)
In-Reply-To: <CANSiNp6Mz+ZKCJy6RnpNSKQU=3eqY3wCrwMJ-t0XP0RpJjk6kg@mail.gmail.com>
References: <CANSiNp6Mz+ZKCJy6RnpNSKQU=3eqY3wCrwMJ-t0XP0RpJjk6kg@mail.gmail.com>

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





view thread (5+ messages)  latest in thread

Message-ID: <9f9e27c8-4f75-8d33-c6be-8e06d86d70a1@aklaver.com>
Permalink:  ../9f9e27c8-4f75-8d33-c6be-8e06d86d70a1@aklaver.com/
Also on:    postgresql.org/message-id/9f9e27c8-4f75-8d33-c6be-8e06d86d70a1@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, praveenssit@gmail.com
  Subject: Re: [HELP] Reset postgres server
  In-Reply-To: <9f9e27c8-4f75-8d33-c6be-8e06d86d70a1@aklaver.com>
  References: <CANSiNp6Mz+ZKCJy6RnpNSKQU=3eqY3wCrwMJ-t0XP0RpJjk6kg@mail.gmail.com> <9f9e27c8-4f75-8d33-c6be-8e06d86d70a1@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