From: | Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> |
---|---|
To: | David Wall <d(dot)wall(at)computer(dot)org> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: pg_dump on Linux with pg_restore on Windows? |
Date: | 2009-11-04 00:08:06 |
Message-ID: | 4AF0C5E6.9060001@postnewspapers.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
David Wall wrote:
> I know this used to be a problem, but I don't have a Windows server to
> test it on again.
>
> Can I do a pg_dump on Linux and then pg_restore it on Windows? We're
> using PG 8.3 now, but could certainly upgrade if that made the difference.
Yes.
I regularly do dumps on Linux ( using pg_dump -Fc usually ) and restore
on Windows. It largely makes no difference; it's the same as a restore
on Linux.
PL languages and contrib modules can be an issue, as on Linux. Just like
when restoring to a Linux server you have to make sure the PL languages
used by the database you're restoring are available, though on Windows
this often involves installing the language runtime (
Perl/python/whatever ) rather than the Pg PL module. Similarly, contrib
modules used on the original server need to be available on the target
server. If those requirements are satisfied the restore is easy and smooth.
If you don't use any contrib modules and don't use any PLs other than
PL/PgSQL then it's as utterly fuss free as a restore on another Linux
server.
--
Craig Ringer
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Ringer | 2009-11-04 00:09:26 | Re: PG gets slower over time |
Previous Message | Andre Lopes | 2009-11-03 23:08:29 | Postgres for mobile website? |