Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WYIvq-0006vf-Bu for pgsql-admin@arkaria.postgresql.org; Thu, 10 Apr 2014 17:38:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WYIvp-0005f9-RM for pgsql-admin@arkaria.postgresql.org; Thu, 10 Apr 2014 17:38:33 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WYIvo-0005cJ-GO for pgsql-admin@postgresql.org; Thu, 10 Apr 2014 17:38:32 +0000 Received: from vs-w.tc.umn.edu ([134.84.135.88]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WYIvg-0002X7-H7 for pgsql-admin@postgresql.org; Thu, 10 Apr 2014 17:38:30 +0000 Received: from mail-ig0-f180.google.com (mail-ig0-f180.google.com [209.85.213.180]) by vs-w.tc.umn.edu (UMN smtpd) with ESMTP for ; Thu, 10 Apr 2014 12:38:15 -0500 (CDT) X-Umn-Remote-Mta: [N] mail-ig0-f180.google.com [209.85.213.180] #+LO+TS+TR X-Umn-Classification: local Received: by mail-ig0-f180.google.com with SMTP id c1so4064925igq.13 for ; Thu, 10 Apr 2014 10:38:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=frRT41EJMgoNUf3L7D5FwdurUpHuyBPaeMc3QG42EOM=; b=g9A3Dd7Gmb8i+sMMaCzDyLcyfrUIL/UkZD7+7nkm2xYyCXj66psEFJtFhLxw/LxQ9j tjjAPDjq8JpM12SJjRCkVYLbZKNbWA5g8I+ajNsrssK8tFDqVlDDGa0M7Vtz5eTkPJxH zAQFL4ejnWivuPVwAD3+BkW48LXfCRYi+wi6IzHQmfjfM7j8/+TsoaUnpG+UUt6cCgSy FrKtRdy862qcB7nk+l1cmTMmSx2tg+E0RwjqXBuAHv9u2fAhisYVy7lQvy9g3U9Ak0vZ QO+Y/P9Ymcpfpz+SSGTx1H9MmPy58NdpAq0nYNubI7WjrybmvJYSCmCpM8lp5VTxnS4q t+cA== X-Gm-Message-State: ALoCoQnSODabwkRrHvMc3Kn9FfmuNmaj15kM4sKjmuUCtAeW0HF1CXWu8H7sy23FF3sApM46dmpwdYfEhhVVuNxDRSMs6oyX7myvwcuKCzgRqIs4zWb58CZpWuO5g3Vsx4E3knlLJpV0 X-Received: by 10.50.39.111 with SMTP id o15mr17728899igk.1.1397151494257; Thu, 10 Apr 2014 10:38:14 -0700 (PDT) X-Received: by 10.50.39.111 with SMTP id o15mr17728892igk.1.1397151494192; Thu, 10 Apr 2014 10:38:14 -0700 (PDT) Received: from [160.94.215.34] (x-160-94-215-34.mngs.umn.edu. [160.94.215.34]) by mx.google.com with ESMTPSA id l7sm21115867igv.4.2014.04.10.10.38.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 10:38:12 -0700 (PDT) Message-ID: <5346D702.7010308@umn.edu> Date: Thu, 10 Apr 2014 12:38:10 -0500 From: Matthew Rantala User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: How to find calculated CRC checksum of pg_controldata References: <533D6902.9080300@umn.edu> <20140409164455.GC8686@momjian.us> In-Reply-To: <20140409164455.GC8686@momjian.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -4.8 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 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