Search Postgresql Archives

Re: pg_restore and schema's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 22, 2005 at 09:30:36AM +0200, Dick Kniep wrote:
> 
> 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 version of PostgreSQL are you using?  I can duplicate this
problem with 7.4.8, but only with pg_restore's -O option.  If
I turn on statement logging, I see the following when running
pg_restore -O:

CREATE SCHEMA Test;

If I run pg_restore without -O, I see the following:

CREATE SCHEMA "Test" AUTHORIZATION postgres;

Since identifiers must be quoted to preserve case, I'd say the -O
behavior is a bug.  You might wish to report this to pgsql-bugs.

I tested 8.0.3 and it doesn't have this problem.

-- 
Michael Fuhr

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux