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 1j4pYs-0007dI-Vt for pgsql-general@arkaria.postgresql.org; Thu, 20 Feb 2020 17:24:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j4pYr-0007re-6Y for pgsql-general@arkaria.postgresql.org; Thu, 20 Feb 2020 17:24:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j4pYq-0007rX-Gu for pgsql-general@lists.postgresql.org; Thu, 20 Feb 2020 17:24:28 +0000 Received: from vmi233092.contaboserver.net ([207.180.239.115] helo=mail.dabax.net) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1j4pYm-0007IO-4R for pgsql-general@lists.postgresql.org; Thu, 20 Feb 2020 17:24:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=blogmail.cc; s=mail; t=1582219463; bh=stRlTdyzdeZrM+1ni+pm2mtLv6sHDzuhHxXmAlTmQ7M=; h=From:Subject:References:To:Date:In-Reply-To:From; b=N2XqVO4W9c2JhT2chL1oDUy/GGNJq+rIK3PUenR9SHiEf9MmerAT+IWcNWWRfSQ2L 4QhT5LHaraFV+YGrdiNzXCndoEHJlUCRHWHdjqT2ylacuXAJwBc3L6LyjNXfyCkbww 11owWwX9lpXZ8dprQoMTui6J37053bLhQDfblfD4= From: al Subject: Re: Trying to restore a PostgreSQL-9.6 database from an old complete dump and/or a up-to-date just base directory and other rescued files References: <2a83cbe8-952f-6623-1cf1-22e356d6288b@blogmail.cc> <6703.1582210057@sss.pgh.pa.us> To: pgsql-general Autocrypt: addr=al@blogmail.cc; prefer-encrypt=mutual; keydata= mQENBFOdx3QB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i0gvz9Ksb4vGcBfHdH5T4EPw7Lzsl7bvNWUJJKT4XIUPg80af+mI2K1tzuZnmY 9Y8WFS2HpGn682I8A/joq+4VOp17oD8zrriGqAgL5jgmaagLQZPJjQARAQABiQE8BBgBAgAm AhsMFiEEkuRnwRm7IHi2uKGfbF9p9eSwj48FAlz/5C8FCQ0kg7sACgkQbF9p9eSwj4/oXggA tgXd+l7Kdx8ZBgO06VFl3d+tUckLc26Xv0KVq0AH5TwzrYqHLMHXl5gpoVbQJHY9oM/iC7hc t5GhqMZO69IuOUfo62zyoHvzy1mv6zTY0FkPuVneiJW8P1iT4GlPKwzVJfFm0h9pnEqS4ba9 qcwmqsOBrA/6F3waX3KZzhLchP2I50ZF+1JxsQXWm5YjtO5AfrVqliikDFm4eB/krrzEIx4p wbWTEwOpxIRjY/1jat1lsyf0RVvCBVneb5q7RqSalsVb5ds/c45RVV8d8yKxuIhcAVIGIr0G JoyMScszYxu8p4D1uEzU7N6R2PUYK/ZFpT6p7UojvgwgdmFpY6jhSQ== Message-ID: Date: Thu, 20 Feb 2020 18:24:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <6703.1582210057@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 20/2/20 15:47, Tom Lane wrote: > > Unfortunately, not having an up-to-date copy of the xlog info is > practically fatal to your hopes of getting back consistent data. > [...] > Ok, so if the only way to restore the data is getting the content in pg_xlog directory I'm looking for it. I went to my restored pg_xlog directory and I found that it has an empty directory called arhive_status and 7 binary files with names: 00000001000000000000000A 00000001000000000000000B 00000001000000000000000C 00000001000000000000000D 00000001000000000000000E 00000001000000000000000F 000000010000000000000010 pg_filedump recognize them as a PostgreSQL files but doesn't show anything, I'm going to try with pg_xlogdump. Is my first time for me trying to use this program, so sintax is not familiar to me, so, anyway I saw that those files have each exactly the size of 16777216 bytes, so is easier to try to find some files with that size in my lost+found. I got 5 files with that size the names are: #288294 (date 2019-04-01) #288287 (date 2019-05-14) #288293 (date 2019-07-02) #261307 (date 2019-11-27) #270185 (date 2020-01-28) (the inode name where ddrescue found) Ok, they are not 7 but maybe I don't need 7 (I don't know), maybe I have 7 now because I was testing some restores from dump in addition at the first one. Also my old dump is from 2019-04-23, so the first one could be the same? So my next step is going to try to read those files with pg_xlogdump and/or trying to name them with those namefiles (beginning with 00000001000000000000000A by date). In the meantime I'm going to wait from other help from you, because is my first time studying PostgreSQL File Layout. It's fascinating but is huge documentation and I need some orientation to no lose the path to my particular issue. Thank you so much.