pg_restore and schema's - Mailing list pgsql-general

From Dick Kniep
Subject pg_restore and schema's
Date
Msg-id 200508220930.36768.dick@kniep.nl
Whole thread Raw
Responses Re: pg_restore and schema's  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general
Hi list,

We have developed an application that makes extensive use of schema's in the
database. Some of the schemanames are uppercase, some are lowercase.

I make a backup using

pg_dump -f /tmp/dumpdb -F c -Z 5 cvix

When I try to restore this file, it fails with

postgres@linux:/tmp> pg_restore -O -d cvix2 /tmp/dumpdb
pg_restore: [archiver (db)] could not execute query: ERROR:  schema "Lindix"
does not exist

What am I doing wrong, or is it a bug. After the restore the database does
contain the schema's but all in lowercase.

Hope someone knows what to do!

Cheers,
Dick Kniep

pgsql-general by date:

Previous
From: "Jeff Eckermann"
Date:
Subject: Re: download binary version for Win32
Next
From: Nigel Horne
Date:
Subject: Re: