Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncA64-0005ta-Bv for pgsql-general@arkaria.postgresql.org; Wed, 06 Apr 2022 18:09:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ncA62-0008VE-SF for pgsql-general@arkaria.postgresql.org; Wed, 06 Apr 2022 18:09:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncA61-0008TW-S9 for pgsql-general@lists.postgresql.org; Wed, 06 Apr 2022 18:09:34 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncA5y-00005I-2h for pgsql-general@lists.postgresql.org; Wed, 06 Apr 2022 18:09:33 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 58DBE3202083; Wed, 6 Apr 2022 14:09:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 06 Apr 2022 14:09:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; bh=UJVvvDBR/L+gfE Pn0opSwYAI4fQ+TDXp/gF8hMBhODE=; b=sM2bUn7sQnAidS6hmsWrMQEn2NfYS+ SVS3UlcgGDXOP1uBEAsVU42q1R5uMvz9Z/WxeRTbdMzBjsa2ni3l/CrHzyVF3EFy O6O0wBG23rAdCo3kPxW4asuTSK3OBMMl5lFTbBQ1yKGpBDskOwA076i+k7mBQ+By IOELOq/97ZNn3SYAlnwcS8GunlcqyP5T7NHKyMV52TbHKE5D6ZEhgC/JL8HKRyXJ k95Gv5flxlQjeNjJohXRV0Z2rH3WzuEwEivQrCXiuzRF6R1eni7JZBRkTy+GeDJK qp95AChHC12/4KtSOKPqz2SxGwCqElRWacCUNHJv1YI8JSm2E28F4KMw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=UJVvvDBR/L+gfEPn0opSwYAI4fQ+TDXp/gF8hMBhODE=; b=QByHGbVx eNbGZWOEeETBsWYYSXaHJlao5939ZM2JLjU2DtPwsg2pN2uvICKriI9tkzOuCYVz JW2XYH+ElmSO3lRSjh96WYa+dFDt0+fQ3CBT+wL/Uaxdg+20rzoo4x3xB4EUdnCi 5G/s2wn5mEXh3duFbFL7PUOKBTI4WjWXzl826QigjqICS1aHgs5agSr1j00FKY9u l0qzw8t8G78LaM0KkDqIhqMB+wn0QzYOvnFID1ms911j4aCPPNoQ8GvqdA13Al55 CLDVPIeHzrEtV97i5zJy2H2RcoqeAJfgOSTpETfu2RPEbqZQca4iYZSWiJxeTClB 39lPJRG2c6uZaQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudejiedguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ekredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeduudefje etveffhefgudehtdfhvdetkeeiueehfeevveduteekleeuheegudehhfenucffohhmrghi nhepphhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdr tghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Apr 2022 14:09:26 -0400 (EDT) Subject: Re: Problem with PG 11 database on OrangePi3 (ARMBIAN, ARM64) after disk disrupion (problem with USB disk connection) To: "W.P." , pgsql-general@lists.postgresql.org References: <9ff52fa7-a125-1225-0e23-c22f034ceb91@wp.pl> <5f2de1ce-4b22-59d1-178e-71cb6a3bfc02@wp.pl> <4a3ef3ed-7591-2195-e3a9-d7ff5e0331b6@wp.pl> From: Adrian Klaver Message-ID: <425a7834-a132-2ef8-e199-ea6c088b3ac6@aklaver.com> Date: Wed, 6 Apr 2022 11:09:25 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <4a3ef3ed-7591-2195-e3a9-d7ff5e0331b6@wp.pl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 4/6/22 11:04 AM, W.P. wrote: > W dniu 06.04.2022 o 18:54, Ron pisze: > I know about restoring backup. I just don't have one (at least with > reasonnable age), as it is experimental installation. (Didn't ever been > thinking about locating production DB on USB drive :) ). > If it is experimental you could try pg_resetwal: https://www.postgresql.org/docs/11/app-pgresetwal.html Read all the way through for the ifs/ands/buts. > If it is not possible to get rid ("somehow") of this "replication > error", I will do a "logic restore" -> I have similar database on my > laptop, so I'll get a pg_dumpall from this one, then recreate fresh DB > on OPi and restore from SQL. > > > It looks that DATA in PG DB is protected by various mechanisms very > well, but "dictionary data" (in this case replication data) is not (as > much). And in my case ext4 recovery mechanisms failed. > > This makes me logical replication more appealing. > > > Laurent > > > -- Adrian Klaver adrian.klaver@aklaver.com