Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZRFjB-0004kq-FL for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Aug 2015 08:25:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZRFj9-00037O-O5 for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Aug 2015 08:25:07 +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) (envelope-from ) id 1ZRFj8-00036F-Ub for pgsql-bugs@postgresql.org; Mon, 17 Aug 2015 08:25:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZRFj6-0007wk-62 for pgsql-bugs@postgresql.org; Mon, 17 Aug 2015 08:25:06 +0000 MIME-Version: 1.0 Subject: BUG #13576: a weird behavior of pg_restore command To: pgsql-bugs@postgresql.org From: nao-anzai@xc.jp.nec.com Date: Mon, 17 Aug 2015 08:24:43 +0000 Message-ID: <20150817082443.1670.1103@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.1 (-) 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: 13576 Logged by: Naoya Anzai Email address: nao-anzai@xc.jp.nec.com PostgreSQL version: 9.5alpha2 Operating system: Linux Description: Hi hackers, I found a little bit weird behavior of pg_restore command when specified --no-data-for-failed-tables and -c options. Following is a script for reproducing that cases. --- # SQL psql template1 <lastErrorTE, this doesn't work fine because pre TOC error is overwritten by current TOC error. Each TOC should have each own error status, so I removed AH->lastErrorTE, I added _tocEntry->wasError instead of that. 3. and fixed a japanese word typo of pg_restore --help. I attached a patch. Would anyone confirm this? Regards, Naoya --- Naoya Anzai Engineering Department NEC Solution Inovetors, Ltd. E-Mail: nao-anzai@xc.jp.nec.com --- -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs