Re: Schema backup - SOLVED - Mailing list pgsql-general

From Claudio Lapidus
Subject Re: Schema backup - SOLVED
Date
Msg-id BAY7-DAV23IAw19DBqq000013f2@hotmail.com
Whole thread Raw
In response to Schema backup  ("Claudio Lapidus" <clapidus@hotmail.com>)
Responses Re: Schema backup - SOLVED
List pgsql-general
Tom Lane wrote:
> The proper procedure IMHO would be
> pg_dumpall -s >dumpfile
> psql template1 <dumpfile
>
> There is a small problem with this in 7.3.* (but not before or after):
> due to an oversight, that version of pgdump_all doesn't support the -s
> switch.  So if you are using 7.3 you have to do something like

Ah, ah. That's why it didn't work as I was expecting. This is 7.3.2, yes.
(Peter, this is the 'something' you were asking me to define in your
response. Sorry for not having been more specific the first time.)

>
> pg_dumpall -g >dumpfile
> for each database:
> pg_dump -C -s database >>dumpfile

That was what we ended up doing. It worked very well.

Thanks to all
cl.

pgsql-general by date:

Previous
From: Rajesh Kumar Mallah
Date:
Subject: RT with PostgreSQL .
Next
From: "Muhyiddin A.M Hayat"
Date:
Subject: PostgreSQL Delphi