Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id E45F92E0042 for ; Thu, 24 Apr 2008 22:17:29 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 56636-02 for ; Thu, 24 Apr 2008 22:17:18 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by developer.postgresql.org (Postfix) with ESMTP id 34BF42E003D for ; Thu, 24 Apr 2008 22:17:26 -0300 (ADT) Received: by wa-out-1112.google.com with SMTP id n7so5679505wag.5 for ; Thu, 24 Apr 2008 18:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=Bq/xurfYTDhn+W98xX4/Y356TumpRUZHlmn5GvT3FEw=; b=AuDsuS8SQ3lNpt5gWUXNDZEotJyIMQW4qp/EkGHJYDdg/AyRpP7pbL7evxAIYjEV4X56NgH6sZl1KEa1tYrkJg9zyCn9dAFIgePweuIVJ/vwEDFteqffuxwMTBMb15R5je77RDlXrW+i/PonCdra2nXq3Me+ASL511LJWqpt830= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=enCjgdTK5S4XNSAdYrk1jY8ibjvHdPXdlaT9cT5uOcNzhh9/G+/ns3s5zUQCdSEYw/3FuY53kFSG3h5oZV4FVbbKudbXMSXXBNBMxmUIBFqDGk+WV5BHFeSsAfJXLTl2NR7zOG20YcurGB6OuZmcu4YqPFkjLOzoRP8aZOgTzdU= Received: by 10.114.73.1 with SMTP id v1mr2612728waa.16.1209086244713; Thu, 24 Apr 2008 18:17:24 -0700 (PDT) Received: by 10.115.111.4 with HTTP; Thu, 24 Apr 2008 18:17:22 -0700 (PDT) Message-ID: <4dd8f37f0804241817q4ac5da57t131f8f910f40209@mail.gmail.com> Date: Thu, 24 Apr 2008 22:17:22 -0300 From: "=?ISO-8859-1?Q?M=E1rcio_Aguiar_Ribeiro?=" To: pgsql-admin@postgresql.org Subject: Server format and recovery MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200804/251 X-Sequence-Number: 29015 Hello all, I just spent 4 days trying to recover a postgres database from a server disaster without success. A "buggy" file just erased all the HD of the server. We were able to recover almost all files, so I re-installed Ubuntu and Postgres 8.2. After that, I thought I would be able to just copy my PGDATA folder from the recovered files to the server and then run the postgres server, but my pg_control file was not valid. So I executed pg_resetxlog . When I attempted to run the server again I received the following error: "FATAL: database files are incompatible with server The database cluster was initialized with MAXALIGN 0, but the server waas compiled with MAXALIGN 4." (translated from my language to english by me) Since this, I already tried several ways to recover the data. I started a new DB with initdb and copied the base/ and global/ data to the PGDATA, but there's no use. I'm able to psql my database, but when try a "select * from pg_tables" i receive: "ERROR: unexpected chunk size 1986 in chunk 0 for toast value 10319" In other attempts I also received: "array size exceeds the maximum allowed" I out of ideas right now, so I'm asking your help. Any suggestions? Thanks! -- Marcio Aguiar Ribeiro