From: | Michael Fuhr <mike(at)fuhr(dot)org> |
---|---|
To: | Ciprian Hodorogea <ciprian(dot)hodorogea(at)bitsp(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-admin(at)postgresql(dot)org |
Subject: | Re: pg_dump - txt sql vs binary |
Date: | 2006-01-24 21:24:04 |
Message-ID: | 20060124212404.GA91387@winnie.fuhr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Tue, Jan 24, 2006 at 10:33:50AM +0200, Ciprian Hodorogea wrote:
> >pg_dump is certainly the preferred method.
>
> I have Postgres 8.1.1 installed on a Windows machine and on a Linux
> machine. When I do pg_dump (from Windows) and then pg_restore from
> Linux, I get 52 errors, which I ignore and things seem to work fine, but
> I suppose something is wrong about this...
As Tom mentioned, the Windows box apparently has some contributed
modules that the Linux box doesn't, so when you try to restore the
catalog entries on Linux you get errors. If you know you don't
need those modules then you can ignore the errors; if you'd like
to have an error-free restore then either add the modules to Linux,
remove them from Windows, or delete them from the backup. If you're
using pg_restore then you could use the -l/--list and -L/--use-list
options to omit certain objects from the restore. See the documentation
for an example.
> It is only the setup from the website that I have installed and not
> other contribs.
Did you build from source or did you install a pre-built package?
If from source then the contributed modules are in the contrib
directory; if from a package then look around for another package
that contains the contributed modules.
--
Michael Fuhr
From | Date | Subject | |
---|---|---|---|
Next Message | Jaime Casanova | 2006-01-24 21:43:37 | Re: pg_dump - txt sql vs binary |
Previous Message | Arnau | 2006-01-24 19:53:50 | Re: Where is my bottleneck? |