From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
---|---|
To: | Vlad Alex <vlad(dot)alex(dot)md(at)gmail(dot)com> |
Cc: | PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: Postgres 9.6.3 pg_dump issue |
Date: | 2017-05-13 22:47:04 |
Message-ID: | CAB7nPqSuyN1nKxWEq2KvtTeaYzisnk3f4WKjggwHxrMAGV9RUw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Sun, May 14, 2017 at 7:02 AM, Vlad Alex <vlad(dot)alex(dot)md(at)gmail(dot)com> wrote:
> Here is the output of pg_dump command:
>
> pg_dump: [archiver (db)] query failed: ERROR: schema "public" does not
> exist
> LINE 1: ...::regclass AND pip.objsubid = 0 AND pip.objoid <> 'public'::...
> ^
> pg_dump: [archiver (db)] query was: SELECT n.tableoid, n.oid, n.nspname,
> (SELECT rolname FROM pg_catalog.pg_roles WHERE oid = nspowner) AS rolname,
> (SELECT pg_catalog.array_agg(acl) FROM (SELECT
> pg_catalog.unnest(coalesce(n.nspacl,pg_catalog.acldefault('n',n.nspowner)))
> AS acl EXCEPT SELECT
> pg_catalog.unnest(coalesce(pip.initprivs,pg_catalog.acldefault('n',n.nspowner))))
> as foo) as nspacl, (SELECT pg_catalog.array_agg(acl) FROM (SELECT
> pg_catalog.unnest(coalesce(pip.initprivs,pg_catalog.acldefault('n',n.nspowner)))
> AS acl EXCEPT SELECT
> pg_catalog.unnest(coalesce(n.nspacl,pg_catalog.acldefault('n',n.nspowner))))
> as foo) as rnspacl, NULL as initnspacl, NULL as initrnspacl FROM
> pg_namespace n LEFT JOIN pg_init_privs pip ON (n.oid = pip.objoid AND
> pip.classoid = 'pg_namespace'::regclass AND pip.objsubid = 0 AND pip.objoid
> <> 'public'::regnamespace)
>
> The similar message is in the server log.
The same issue has been reported a couple of days back in another thread:
https://www.postgresql.org/message-id/20170512181801.1795.47483@wrigleys.postgresql.org
That's easily reproducible by the way, and triggered by getNamespaces
when not using outputClean().
--
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2017-05-13 22:54:08 | Re: BUG #14650: pg_dump -c fails when 'public' schema doesn't exist |
Previous Message | Vlad Alex | 2017-05-13 22:02:36 | Postgres 9.6.3 pg_dump issue |