From: Matthew Rantala <mjrantal@umn.edu>
To: pgsql-admin@postgresql.org
Subject: Re: How to find calculated CRC checksum of pg_controldata
Date: Thu, 10 Apr 2014 12:38:10 -0500
Message-ID: <5346D702.7010308@umn.edu> (raw)
In-Reply-To: <20140409164455.GC8686@momjian.us>
References: <533D6902.9080300@umn.edu>
<20140409164455.GC8686@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
On 4/9/2014 11:44 AM, Bruce Momjian wrote:
> On Thu, Apr 3, 2014 at 08:58:26AM -0500, Matthew Rantala wrote:
>> Hello,
>>
>> Question: Is there a way to obtain the calculated CRC checksum for
>> pg_controldata from the command line?
> Did you try pg_resetxlog? That should set the checksum properly.
>
Thanks, Bruce
I think I actually tried that and while it did correct the checksum, I
think it also closed/finalized the first log file
(00000001000000000000001) and modified the checkpoint locations which
wasn't going to work in my recovery. There may be a way to avoid that by
passing the correct parameters, but I found digging into the source code
easier.
Thanks again,
Matt
--
Matthew J Rantala, GISP
Minnesota Geological Survey
University of Minnesota
2642 University Ave.
St. Paul, MN 55114-1057
(612) 627-4780 x206
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: mjrantal@umn.edu
Subject: Re: How to find calculated CRC checksum of pg_controldata
In-Reply-To: <5346D702.7010308@umn.edu>
* 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