From: Michael Fuhr <mike@fuhr.org>
To: Ciprian Hodorogea <ciprian.hodorogea@bitsp.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_dump - txt sql vs binary
Date: Tue, 24 Jan 2006 14:24:04 -0700
Message-ID: <20060124212404.GA91387@winnie.fuhr.org> (raw)
In-Reply-To: <43D5E66E.9020002@bitsp.com>
References: <20060122204132.9567D14DB13@mail07.powweb.com>
<22930.1137973880@sss.pgh.pa.us>
<43D4E9A8.8050005@bitsp.com>
<20060123155729.GA23544@winnie.fuhr.org>
<43D5091C.9010608@bitsp.com>
<6688.1138036985@sss.pgh.pa.us>
<43D5E66E.9020002@bitsp.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mike@fuhr.org, ciprian.hodorogea@bitsp.com, tgl@sss.pgh.pa.us
Subject: Re: pg_dump - txt sql vs binary
In-Reply-To: <20060124212404.GA91387@winnie.fuhr.org>
References: <20060122204132.9567D14DB13@mail07.powweb.com> <22930.1137973880@sss.pgh.pa.us> <43D4E9A8.8050005@bitsp.com> <20060123155729.GA23544@winnie.fuhr.org> <43D5091C.9010608@bitsp.com> <6688.1138036985@sss.pgh.pa.us> <43D5E66E.9020002@bitsp.com> <20060124212404.GA91387@winnie.fuhr.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox