[GENERAL] Why is pg_restore trying to create tables in pg_catalog?

2014-04-04 Thread Seamus Abshere
hi, Why is pg_restore trying to put stuff into the pg_catalog schema of all places? It's ignoring the schema specified in the pg_dump itself (`myschema`) and even my search_path (`public`). $ psql stuff_development --command show search_path search_path - public (1 row) $

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

2014-04-04 Thread Tom Lane
Seamus Abshere sea...@abshere.net 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

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

2014-04-04 Thread Seamus Abshere
On 4/4/14, 12:58 PM, Tom Lane wrote: Seamus Abshere sea...@abshere.net 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 myschema doesn't exist, the creation target devolves to

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

2014-04-04 Thread Tom Lane
Seamus Abshere sea...@abshere.net writes: On 4/4/14, 12:58 PM, Tom Lane wrote: Hm ... does myschema actually exist in the target database? [...] 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