Re: Moving the database from winxp to linux

From: Chris <dmagick(at)gmail(dot)com>
To: Tomas Lanczos <lanczos(at)t-zones(dot)sk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Moving the database from winxp to linux
Date: 2007-01-11 01:40:12
Message-ID: 45A5957C.1060602@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tomas Lanczos wrote:
> I am planning within few week to migrate the existing 8.1.4 postgresql
> database from winxp to 8.2 postgresql installed on linux (ubuntu). Is there
> any good tutorial for the task like this, event. do have somebody summarized
> some tricks and tips, at least?
>
> many thanks in advance and regards

If it's just one database, then use pg_dump
(http://www.postgresql.org/docs/current/static/app-pgdump.html) to
create a database dump, then you can pipe it into psql:

psql < /path/to/dumpfile.

or use pg_restore
(http://www.postgresql.org/docs/current/static/app-pgrestore.html).

If you want to move the whole system, use pg_dumpall to dump all databases.

http://www.postgresql.org/docs/current/static/app-pg-dumpall.html

--
Postgresql & php tutorials
http://www.designmagick.com/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Browne 2007-01-11 03:25:44 Re: Autovacuum Improvements
Previous Message Mike Poe 2007-01-11 01:38:38 Question - Query based on WHERE OR