Re: Moving the database from winxp to linux - Mailing list pgsql-general

From Chris
Subject Re: Moving the database from winxp to linux
Date
Msg-id 45A5957C.1060602@gmail.com
Whole thread Raw
In response to Moving the database from winxp to linux  ("Tomas Lanczos" <lanczos@t-zones.sk>)
Responses Re: Moving the database from winxp to linux  ("Tomas Lanczos" <lanczos@t-zones.sk>)
List 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/

pgsql-general by date:

Previous
From: Jeff Davis
Date:
Subject: Re: tsearch2 headline() query subselect help
Next
From: Christopher Browne
Date:
Subject: Re: Autovacuum Improvements