From: | Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at> |
---|---|
To: | "'Guo, Yun *EXTERN*'" <YGuo(at)cvent(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: pg_dump not dumping some schemas |
Date: | 2015-06-01 08:07:57 |
Message-ID: | A737B7A37273E048B164557ADEF4A58B36618A43@ntex2010i.host.magwien.gv.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Yun Guo wrote:
>>> I use this command to dump schema:
>>> pg_dump -s -n test polling_etl > file.sql
>>>
>>> However, the file.sql file includes creation of all the objects in
>>> schema test, but not the creation of test schema itself.
>>> polling_etl=# \dn+ test
>>> List of schemas
>>> Name | Owner | Access privileges | Description
>>> ------+-------+-------------------+-------------
>>> test | test | test=UC/test +|
>>> | | pb_writer=UC/test+|
>>> | | =U/test +|
>>> | | postgres=U*C/test |
> I tried again. It¹s still not dumping CREATE SCHEMA. And weirdly it would
> work for some other schemas in the same database.
>
> -bash-4.1$ pg_dump -s -n test polling_etl | grep 'CREATE SCHEMA'
> -bash-4.1$ pg_dump -s -n test2 polling_etl | grep 'CREATE SCHEMA'
> CREATE SCHEMA test2;
That is disturbing.
Does the schema show up in a custom format dump?
pg_dump -s -n test -Fc polling_etl | pg_restore -l
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas SIMON | 2015-06-01 09:05:36 | Re: Performances issues with SSD volume ? |
Previous Message | Thomas Kellerer | 2015-06-01 06:03:57 | Re: Warning when connecting from PSQL Command |