Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arAPJ-0002fz-Ty for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Apr 2016 20:32:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1arAPJ-0007IE-GP for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Apr 2016 20:32:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ar9Av-0006TS-Uv for pgsql-bugs@postgresql.org; Fri, 15 Apr 2016 19:13:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ar9At-00070F-6h for pgsql-bugs@postgresql.org; Fri, 15 Apr 2016 19:13:05 +0000 MIME-Version: 1.0 Subject: BUG #14088: pg_restore, --schema, causes TOC entries from even executing. To: pgsql-bugs@postgresql.org From: psi-jack@linux-help.org Date: Fri, 15 Apr 2016 19:12:46 +0000 Message-ID: <20160415191246.22924.68401@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 14088 Logged by: Eric Renfro Email address: psi-jack@linux-help.org PostgreSQL version: 9.4.5 Operating system: CentOS 6 Description: I found a bug when trying to backup, stripping BDR schemas from databases to restore to a non-BDR database, and this is a pretty serious bug. When using pg_restore -l --schema=public with pg_restore -L from that data, the -l does not contain information needed for the --create flag to work. For example, DATABASE TOC entries are missing from the -l output. Likewise, when using pg_restore --schema=public --create, again, key TOC entries related to creation fail to exist because --schema is being used. This resulted in all create items not restoring with the --create flag used. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs