Re: error migrating database from 8.4 to 8.3

From: Filip Rembiałkowski <plk(dot)zuber(at)gmail(dot)com>
To: Marc Lustig <ml(at)marclustig(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: error migrating database from 8.4 to 8.3
Date: 2010-02-11 14:12:51
Message-ID: 92869e661002110612y4d86d234r529d340eb1594c68@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2010/2/8 Marc Lustig <ml(at)marclustig(dot)com>

> Due to a server issue we needed a reinstallation of Ubuntu along with a
> downgrade to Ubuntu Hardy.
>
>
> So this is what we did:
>
> - copied all from /var/lib/postgresql/8.4/main/ to the new server
> /var/lib/postgresql/8.3/main/
> - edited /var/lib/postgresql/8.3/main/postmaster.opts to correct the path
>

No, that will not work. On-disk formats are not binary compatible.
You have to make backups from 8.4 and restore them on empty 8.3.

See "Notes" in http://www.postgresql.org/docs/8.4/static/app-pgdump.html

> Now trying to start the server results in
>
> * Error: The server must be started under the locale : which does not exist
> any more.
>
> I googled and found that people ran into this problem due to different
> architectures (32 vs 64 bit).
> In this case, the architecture is definiately the same.
>
> The only difference is that the database comes from a 8.4 installation and
> the server is 8.3
>
> Please help solving this locale issue.
>
> thanks!
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

--
Filip Rembiałkowski
JID,mailto:filip(dot)rembialkowski(at)gmail(dot)com
http://filip.rembialkowski.net/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Filip Rembiałkowski 2010-02-11 14:20:06 Re: problems maintaining boolean columns in a large table
Previous Message Harald Fuchs 2010-02-11 14:10:55 Re: Large Objects: Sizeof and Deleting Unlinked LOs