Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id DBECE2E005D for ; Fri, 25 Apr 2008 11:04:01 -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 28172-10 for ; Fri, 25 Apr 2008 11:03:44 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from ipmail01.adl6.internode.on.net (ipmail01.adl6.internode.on.net [203.16.214.146]) by developer.postgresql.org (Postfix) with ESMTP id A7A7D2E004B for ; Fri, 25 Apr 2008 11:03:52 -0300 (ADT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Am0DAHOBEUjLevdHiGdsb2JhbAAsgSaQCAEBAQ8gmkI X-IronPort-AV: E=Sophos;i="4.25,707,1199626200"; d="scan'208";a="89198172" Received: from ppp247-71.static.internode.on.net (HELO DevBox.local) ([203.122.247.71]) by ipmail01.adl6.internode.on.net with ESMTP; 25 Apr 2008 23:33:47 +0930 Message-ID: <4811E4C1.7000803@Sheeky.Biz> Date: Fri, 25 Apr 2008 23:33:45 +0930 From: Shane Ambler User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: =?ISO-8859-1?Q?M=E1rcio_Aguiar_Ribeiro?= CC: pgsql-admin@postgresql.org Subject: Re: Server format and recovery References: <4dd8f37f0804241817q4ac5da57t131f8f910f40209@mail.gmail.com> In-Reply-To: <4dd8f37f0804241817q4ac5da57t131f8f910f40209@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/252 X-Sequence-Number: 29016 Márcio Aguiar Ribeiro wrote: > recover almost all files, so I re-installed Ubuntu and Postgres 8.2. > 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) Basically the server you are running now is unable to read the data files you have. This is to do with the way the postgresql binaries have been compiled. My first guess is that the new postgresql binaries are 64 bit but the old install was 32 bit. (I don't actually know the conditions for the MAXALIGN value) Have you reinstalled the same version of ubuntu? (and postgresql) I am assuming it is on the same hardware. Did you get the same postgresql package or did you build from source? If you built from source before you need to assign the same ./configure options as you did previously. -- Shane Ambler pgSQL (at) Sheeky (dot) Biz Get Sheeky @ http://Sheeky.Biz