Re: pg_dump not dumping some schemas

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 14:08:10
Message-ID: A737B7A37273E048B164557ADEF4A58B36618F30@ntex2010i.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Yun Guo wrote:
> 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

... or your database is corrupt.

Maybe it helps to issue the queries that pg_dump uses:

SELECT tableoid, oid, nspname, (SELECT rolname FROM pg_catalog.pg_roles WHERE oid = nspowner) AS rolname, nspacl FROM pg_namespace;

SELECT oid FROM pg_catalog.pg_namespace n WHERE (n.nspname = 'test');

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2015-06-01 14:11:43 Re: pg_dump not dumping some schemas
Previous Message Guo, Yun 2015-06-01 14:04:57 Re: pg_dump not dumping some schemas