From: | "Guo, Yun" <YGuo(at)cvent(dot)com> |
---|---|
To: | Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: pg_dump not dumping some schemas |
Date: | 2015-06-01 13:21:52 |
Message-ID: | D191D463.3774F%yguo@cvent.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
It doesn’t show up in custom format dump either… I begin to wonder if it’s
a bug in pg_dump.
-bash-4.1$ pg_dump -s -n test -Fc polling_etl | pg_restore -l | grep SCHEMA
-bash-4.1$ pg_dump -s -n test2 -Fc polling_etl | pg_restore -l | grep
SCHEMA
7; 2615 1131042 SCHEMA - test2 pb_writer
On 6/1/15, 4:07 AM, "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at> wrote:
>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 | Tom Lane | 2015-06-01 13:53:01 | Re: pg_dump not dumping some schemas |
Previous Message | Graeme B. Bell | 2015-06-01 09:10:01 | Re: raid writethrough mode (WT), ssds and your DB. (was Performances issues with SSD volume ?) |