Re: How to move a database from HP server to Linux Server that had already one database.

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "DAYSE ENGEMANN" <dayse(dot)engemann(at)hp(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: How to move a database from HP server to Linux Server that had already one database.
Date: 2010-07-16 18:11:55
Message-ID: 4C405A9B020000250003375C@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"ENGEMANN, DAYSE" <dayse(dot)engemann(at)hp(dot)com> wrote:
> Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov> wrote:

>> pg_dump | psql

> And to restore it.. Can I use pg_restore -d new_db_name ??

I usually pipe the output of pg_dump to psql, and thereby avoid
making a copy of the dump output entirely. If you want to dump in
custom format, yeah, you would use pg_restore instead.

-Kevin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message ENGEMANN, DAYSE 2010-07-16 18:21:35 Re: How to move a database from HP server to Linux Server that had already one database.
Previous Message ENGEMANN, DAYSE 2010-07-16 17:57:05 Re: How to move a database from HP server to Linux Server that had already one database.