pg_restore and schema's

From: Dick Kniep <dick(at)kniep(dot)nl>
To: pgsql-general(at)postgresql(dot)org
Subject: pg_restore and schema's
Date: 2005-08-22 07:30:36
Message-ID: 200508220930.36768.dick@kniep.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nigel Horne 2005-08-22 09:05:50 Re:
Previous Message Jeff Eckermann 2005-08-22 03:55:07 Re: download binary version for Win32