Search Postgresql Archives

Re: Why is pg_restore trying to create tables in pg_catalog?

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

 



Seamus Abshere <seamus@xxxxxxxxxxx> writes:
> Why is pg_restore trying to put stuff into the pg_catalog schema of all 
> places?

Hm ... does myschema actually exist in the target database?  If it
doesn't, and the dump file doesn't include a command to create it,
this is what you'll get.  That's because what pg_dump emits is

SET search_path = myschema, pg_catalog;
CREATE TABLE ...

and at the moment, if myschema doesn't exist, the creation target
devolves to pg_catalog.  This is not terribly elegant but I'm not
sure if there's consensus to change it.

			regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[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