Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etxVi-0008J4-T0 for pgsql-general@arkaria.postgresql.org; Thu, 08 Mar 2018 15:31:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1etxVh-0006yk-TA for pgsql-general@arkaria.postgresql.org; Thu, 08 Mar 2018 15:31:13 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etxUg-0001UC-Rk for pgsql-general@lists.postgresql.org; Thu, 08 Mar 2018 15:30:11 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etxUd-0000Gn-3f for pgsql-general@postgresql.org; Thu, 08 Mar 2018 15:30:09 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 98B5F21B47; Thu, 8 Mar 2018 10:30:05 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Thu, 08 Mar 2018 10:30:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=SLsjXGVIcOwJYOAPq0dfBTa4UsVMa LD97Bn3L/3qGEA=; b=Pk1taL72oeqDmT66kN0DQ9RChGOyGMD6WwsMQLeiygu0M Us+Cp/WRoVfQLp2kBC221C2fytWRvdm39pgdqOuImyrAyRn+P9VrRZ+L3t/cxxMb qpy4rDEXPcEdPHfp4JJ+px63oLaHliK9Kxbj/1TG3581zK/Rsh3iatRjkeMRyVKa /WNOCUmU/N8ThbqXYfJO2QtJ5VX0MrzAwVuz0qXjpmwCve00+5kaFo+zfKpbV8/p yajHQYOSjzZMgkVgMQmfvihYQBgkaXtMQJw8WOyJrUncSCnZ/xszp5TgmFFXCLDA VAPqBXhD1zRiyUh2UnI0Dn7EMWIE0W+oxciaRcXSw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=SLsjXG VIcOwJYOAPq0dfBTa4UsVMaLD97Bn3L/3qGEA=; b=igOaITf8a/w8TyIVfLcOeb 9PzAPbWuAbrsM2jFPJqV60IoBVZy0rSvSq/NHkQbZJs0ORdMhFIeBUTxJi2qSAAp RwcUop64L8U7zPVbhlzEDxhEP1+TsaNn7FuhouyKtOlo3eoJERSPatxzGHQ7N5oD oGy8O6qCNLclHCJDdKt5DFWGjXVnhJfLGs4bdtmGxFwEXQzZA6CjYLLttDDbHHq/ w3Hmc+6YPpZvd6DHp1kolBLrKX3gNGTAmUHoO5oeQ9gLSZ6DhCSxn3k4N56HBYkB bYMVH/HjzBKJjv0YAmAXsRWT3NRFmxw0XYScuUOVZgwm+kgqVPzPg8kyO3spBWTw == X-ME-Sender: Received: from [192.168.1.2] (71-35-123-124.tukw.qwest.net [71.35.123.124]) by mail.messagingengine.com (Postfix) with ESMTPA id 02EF22485C; Thu, 8 Mar 2018 10:30:04 -0500 (EST) Subject: Re: What is the meaning of pg_restore output? To: Alexandru Lazarev , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: Date: Thu, 8 Mar 2018 07:30:03 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 03/08/2018 01:49 AM, Alexandru Lazarev wrote: > Hi PG community, > I have questions about pg_restore output. > > At some point of time in pg_restore output was such phrase > "*/pg_restore: setting owner and privileges for /*", then > it disappeared, it seems, when upgraded from PG 9.6.2 to 9.6.6 > Other phrases "pg_restore: processing /*item */3615 DEFAULT id > pg_restore: creating DEFAULT "public.id " > are observed if pg_restore is executed with flag -j N (where N > 1) > and aren't present when -j 1 (or without -j) > > So main questions are: > 1. What is the meaning of this phrases? > 2. Are they documented somewhere? > 3. Is it possible that output change from version to version? I do not see any change in the release notes: https://www.postgresql.org/docs/9.6/static/release.html I would look at what at client_min_messages (enum) in: https://www.postgresql.org/docs/9.6/static/runtime-config-logging.html It would also helpful to see the complete pg_dump and pg_restore commands you are working with. > > Why I am asking? > I saw a script which does pg_restore and grep some of this phrases as > SUCCESS indicator that pg_restore passed OK (+ something like grep -iv > "error"). > script doesn't use pg_restore exit code because, as I understood from > the authors, in the past were situations that pg_restore returned 0 code > but didn't restore of db. > > Any answers, hints are welcome :). > Thanks > > > Virus-free. www.avast.com > > > > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> -- Adrian Klaver adrian.klaver@aklaver.com