Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f7cyO-0001da-MS for pgsql-general@arkaria.postgresql.org; Sun, 15 Apr 2018 08:25:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f7cyL-0002cP-PM for pgsql-general@arkaria.postgresql.org; Sun, 15 Apr 2018 08:25:17 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1f7cyL-0002bz-HD for pgsql-general@lists.postgresql.org; Sun, 15 Apr 2018 08:25:17 +0000 Received: from sonic308-10.consmr.mail.ne1.yahoo.com ([66.163.187.33]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f7cyI-0000Z9-0c for pgsql-general@lists.postgresql.org; Sun, 15 Apr 2018 08:25:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1523780710; bh=YLiqTPFQ8sdUytc22o2tk69+FMuKnCTVtxMV0yyQ31E=; h=Date:From:To:Subject:References:From:Subject; b=cNximMbUd8dK+JeVeueRBmCc8fQdmbC/v25nvY6yn3kAY+uP+SBw+EVEpzgz7uhDHTf2EV2q9d8zZ/49Snj8mHsr5REYXVtxiHxsWm5BGL6uPlFTi7GXxYCZrYeWphi6/+gPQIq7NeSG3ATjufgHJVxo6AT96kRp8MD2PvhBiCaFObiAQjFklSkMUdcEG00DmbtYVdwX4O+OAMhsA5VyExbx5pmHbtIjxn6lVhYYKergUJAj0ESAZqK4p6XjKJRE8zADNTirfd9D4kU8n4SayJ/Qe7/IfSgNA3JbJUD3EkPDN/V2z2z1UKh9fttsMLhZfRJ/wcBf9KSmsGyn5Pnt6g== X-YMail-OSG: LFqKM0oVM1karXj4yvhkjDxQbddqYim4lvftswRnBDajdf1N1mg0nswMzEOss0a SPiPlC9PxZxOFXX3Bk6IQwf_8zEbeyNX9UyENE7XmLYLG2MmnNpNIEdZSW_BNmWxI3xpKm4_5Wwg e2kINK1gwlzDOc91_fLVAFfH3W3nMfwMkFrM4w8qyWZT8L9S9QHx3xCtfzmlVHZ08LGblWq7SYxS MrQ0H5hwsfU0skV2.qGO.y4quXYKjN7yMcF_HZIPq2shpGu.EPI2V_2NZSjaYIBeE_sER3biDyTS re9EI0GSe8.THw_Lo3VnM8m2sTFi6UPpros5aFEZQA.S90XBQSNg6bgFFoSy2fJcDtxgHjKa.sz3 EdWvwGkfgdfEcSRVX85rsaZuEYFqYQPoU3TE9e_JLy19mC.fwEBUm0pjBzOFolsACCAaG7gVYbUk I5F13AUtXTZzycKfMxbQu_PAbOeduk0wBnypHGNH55E78GY8.NaIICEU0lL_2S1rI_pWS0vWXpw- - Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ne1.yahoo.com with HTTP; Sun, 15 Apr 2018 08:25:10 +0000 Date: Sun, 15 Apr 2018 08:25:05 +0000 (UTC) From: A A To: "pgsql-general@lists.postgresql.org" Message-ID: <22260152.420560.1523780705996@mail.yahoo.com> Subject: Can a broken Postgresql data directory be reconstructed without losing data? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_420559_538685984.1523780705993" References: <22260152.420560.1523780705996.ref@mail.yahoo.com> X-Mailer: WebService/1.1.11782 YMailNorrin Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0 Content-Length: 2985 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_420559_538685984.1523780705993 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I'm trying to restore a database from a broken data directory that have lost many of its files accidentally. I have tried unsuccessfully to install new instance of the same Postgresql version and then copy (with overwrite) the broken datadir to the new one.here the remaining datadir that I'm working on : |-base |---1 |---16384 |---17950 |---19621 |---pgsql_tmp |-global |-pg_multixact |---members |---offsets |-pg_notify |-pg_stat_tmp |-pg_tblspc |-pg_xlog |---archive_status ------=_Part_420559_538685984.1523780705993 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

I'm trying to restore a database from a broken data directory that have lost many of its files accidentally.

I have tried unsuccessfully to install new instance of the same Postgresql version and then copy (with overwrite) the broken datadir to the new one. here the remaining datadir that I'm working on :

   |-base
   |---1
   |---16384
   |---17950
   |---19621
   |---pgsql_tmp
   |-global
   |-pg_multixact
   |---members
   |---offsets
   |-pg_notify
   |-pg_stat_tmp
   |-pg_tblspc
   |-pg_xlog
   |---archive_status

------=_Part_420559_538685984.1523780705993--