pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vlad Alex <vlad.alex.md@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Postgres 9.6.3 pg_dump issue
Date: Sat, 13 May 2017 18:02:36 -0400
Message-ID: <c0c50bd6-b654-0890-9e73-f3eb0876ddd9@gmail.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hello Support Team:

The server version is:
PostgreSQL 9.6.3 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7 
20120313 (Red Hat 4.4.7-17), 64-bit

pg_dump 9.6.3 does not dump the schema with this command:

$ pg_dump --create --clean --if-exists --schema-only <dbname> -f <file>

The missing 'public' schema was not an issue in 9.6.2.


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.

Please advise.

Thanks,
Vlad


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)  latest in thread

Message-ID: <c0c50bd6-b654-0890-9e73-f3eb0876ddd9@gmail.com>
Permalink:  ../c0c50bd6-b654-0890-9e73-f3eb0876ddd9@gmail.com/
Also on:    postgresql.org/message-id/c0c50bd6-b654-0890-9e73-f3eb0876ddd9@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: vlad.alex.md@gmail.com
  Subject: Re: Postgres 9.6.3 pg_dump issue
  In-Reply-To: <c0c50bd6-b654-0890-9e73-f3eb0876ddd9@gmail.com>
  References: <c0c50bd6-b654-0890-9e73-f3eb0876ddd9@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox