From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Guo, Yun" <YGuo(at)cvent(dot)com> |
Cc: | 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:53:01 |
Message-ID: | 16441.1433166781@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
"Guo, Yun" <YGuo(at)cvent(dot)com> writes:
> It doesnt show up in custom format dump either I begin to wonder if its
> a bug in pg_dump.
pg_dump's handling of schemas is pretty darn simple; it's hard to see how
it could "miss" a schema like that. It would be useful to see the output
of these commands executed in the problematic database:
SELECT oid FROM pg_catalog.pg_namespace n
WHERE n.nspname ~ '^(test)$';
SELECT tableoid, oid, nspname, (SELECT rolname FROM pg_catalog.pg_roles
WHERE oid = nspowner) AS rolname, nspacl FROM pg_catalog.pg_namespace;
which are pretty much everything pg_dump issues that's directly related
to dumping schemas.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Guo, Yun | 2015-06-01 14:04:57 | Re: pg_dump not dumping some schemas |
Previous Message | Guo, Yun | 2015-06-01 13:21:52 | Re: pg_dump not dumping some schemas |