WAL file creation

WAL file creation

am 15.06.2007 15:04:09 von Donald Fraser

This is a multi-part message in MIME format.

------=_NextPart_000_000F_01C7AF56.0B893C60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Does anybody know if it is possible to create a set of *blank* WAL files =
for PostgreSQL 8.1, knowing that the database was safely shut down and =
all data is in tact?

The reason is that during the weekend I failed our master database over =
to our disaster recovery site, put that in read only mode, whilst I =
upgraded the master database, and after completing the upgrade and =
shutting the master down, I some how messed up re-connecting DRDB and =
lost all the new WAL files. From that point on the master would not =
start-up for obvious reasons, but I knew there were no pending =
transactions to be rolled forward in the WAL files, yet without a valid =
WAL file its impossible to start PostgreSQL.

Thanks in advance,
regards
Donald Fraser
------=_NextPart_000_000F_01C7AF56.0B893C60
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



charset=3Diso-8859-1">




Does anybody know if it is possible to create a set =
of *blank*=20
WAL files for PostgreSQL 8.1, knowing that the database was =
safely=20
shut down and all data is in tact?

 

The reason is that during the weekend I =
failed our=20
master database over to our disaster recovery site, put that in =
read only=20
mode, whilst I upgraded the master database, and after completing=20
the upgrade and shutting the master down, I some how messed up=20
re-connecting DRDB and lost all the new WAL files. From that point on =
the master=20
would not start-up for obvious reasons, but I knew there were no pending =

transactions to be rolled forward in the WAL files, yet without a valid =
WAL file=20
its impossible to start PostgreSQL.

 

Thanks in advance,

regards

Donald Fraser


------=_NextPart_000_000F_01C7AF56.0B893C60--

Re: WAL file creation

am 15.06.2007 16:16:25 von Tom Lane

"Donald Fraser" writes:
> Does anybody know if it is possible to create a set of *blank* WAL files =
> for PostgreSQL 8.1, knowing that the database was safely shut down and =
> all data is in tact?

pg_resetxlog

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings