safe to clear pg_xlog archive status directory? - Mailing list pgsql-admin

From Burgholzer, Robert (DEQ)
Subject safe to clear pg_xlog archive status directory?
Date
Msg-id 77F5F8FA4B407F43BFCFD3FC347896913CAB40@COVMSGCES-MBX01
Whole thread Raw
Responses Re: safe to clear pg_xlog archive status directory?  (Kris Bushover <kris@spiceworks.com>)
List pgsql-admin

I am working through getting a warm standby up and running.  I have fumbled a bit, including having a non responsive standby node for a hile, which led (I think) to a big pile of “ready” files in the “pg_xlog/archive_status” directory.  My thought is that I need to start fresh, so here is the process that I envision (someone please let me know if I am making mental errors):

 

#1 – turn off archiving on the master, restart

#2 – shut down postgresql on the replicant

#3 – clear the pg_xlog/archive_status/ dir, with an “rm pg_xlog/archive_status/*” command

#4 – perform a fresh rsync backup of my master to my replicant

#5 – bring my replicant back up into standby mode

#6 – re-enable archiving on the master and restart the postmaster

 

Thanks in advance,

r.b.

 

Robert  Burgholzer

Surface Water Modeler
Virginia DEQ Office of Surface and Ground Water Supply

804-869-3066

 

pgsql-admin by date:

Previous
From: Kong Man
Date:
Subject: Re: log_min_messages=debug5, despite an explicit setting to warning on postgresql.conf
Next
From: Kris Bushover
Date:
Subject: Re: safe to clear pg_xlog archive status directory?