Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1izJDL-0005sB-0R for pgsql-general@arkaria.postgresql.org; Wed, 05 Feb 2020 11:51:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1izJDJ-0006yL-Hk for pgsql-general@arkaria.postgresql.org; Wed, 05 Feb 2020 11:51:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1izJDJ-0006yE-4S for pgsql-general@lists.postgresql.org; Wed, 05 Feb 2020 11:51:25 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1izJDE-0006SM-Mb for pgsql-general@postgresql.org; Wed, 05 Feb 2020 11:51:23 +0000 Received: by mail-qk1-x743.google.com with SMTP id h4so1500381qkm.0 for ; Wed, 05 Feb 2020 03:51:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=wsBhEsVe/3rjekoCU2B3k/ErqbINCzEe3U+wTsct3bM=; b=JGmdcJqciwaUXOZh0SGVxz0EUo9ImVM/sFhS7ejletp/OJtmmM7hNN64EmF8cDCONc GC7dVKxYfi5N5Wa77LfSD9keS75zN2shhVYYp2sWG3G4IUcd+R5io7dRYsyhh/rGdwG/ AqAvmUu5M2MGY5pNkb7oAYnmraNKJ/aGd9OSQw+p9/Njq5h0T15izrZRztEl2LdsrrGl wtOu0iIel3tt2P4VzponqOJFCODwNxah1xDXi40bnDyjhEtvsogyYBto8syXACfiuhex WvrLZx6F2SQ5KuiEOZIkhort8OMFIIIw4MxniaAp3sATlJzbQIBwdqHFy0+mWMph7oEq vM8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=wsBhEsVe/3rjekoCU2B3k/ErqbINCzEe3U+wTsct3bM=; b=TNYmSJjQDR4lssSxu68q8SIunjBZnb5DkN4E1bVw02G3+k3u7qVJtS1j/2cnHzRO5A URsUTZJ+Ylq+zUMjl06NNOSA02IU6nz4v9mqn6wTiZ1ir3qKZE5U+K7Cugfs5dt4mUqb S7xKioCJTbnbvVm9CKYX6zCsR4/BZ+IV0C47RhkcxFZrNPDqWecpaYhC4ZS9I+ckYHUL sK181qJQ5F+uDnRs0OTwY/eNUFZfqG/eOYuYiSmt6DqukL9cFHtc2ljW8Pait+Fdgsu4 xwei27sPCo/RrmMLZBWj4qCYFty/Idf//hL5wQbuOdfNt4sG0KTNH6Ri/ygjHp+k9e4q wSYg== X-Gm-Message-State: APjAAAVoVvb+03RhgIVx0b6FUI0EEISNRGb007XtQkS05JPsD6v24RRX YGs9c7xpj35cvzZ2lZeeW4PcljqYAPw= X-Google-Smtp-Source: APXvYqw6GeB8nFOocmZaGF/YwIOPPcfP24RK0UM+dB5TvloaSZkfghUNnnfUBT7GqddplvHLCIUMig== X-Received: by 2002:a05:620a:56b:: with SMTP id p11mr33089970qkp.32.1580903479756; Wed, 05 Feb 2020 03:51:19 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([201.186.208.119]) by smtp.gmail.com with ESMTPSA id n32sm13772115qtk.66.2020.02.05.03.51.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 03:51:18 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 1E96C300A63; Wed, 5 Feb 2020 08:51:16 -0300 (-03) Date: Wed, 5 Feb 2020 08:51:16 -0300 From: Alvaro Herrera To: Nick Renders Cc: pgsql-general Subject: Re: Unable to startup postgres: Could not read from file "pg_clog/00EC" Message-ID: <20200205115116.GA7298@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <41881D5F-360A-440D-AD8C-B9F582C5A0AF@arcict.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Feb-05, Nick Renders wrote: > Is there anything specific I should check in our postgres installation / > database to make sure it is running ok now? Anyway to see what the > consequences were of purging that one pg_clog file? Losing pg_clog files is pretty bad, and should not happen; then again, this might have been something else (ie. the file was maybe not lost). That said, wrongly overwriting files is even worse. By zeroing an existing pg_clog file, you marked a bunch of transactions as aborted. Your data is now probably inconsistent, if not downright corrupt. I would be looking for my most recent backup ... If you're very lucky, your database might be pg_dumpable. I would try that, followed by restoring it in a separate clean instance and seeing what happens. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services