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 1exEZn-0004xa-0K for pgsql-general@arkaria.postgresql.org; Sat, 17 Mar 2018 16:20:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1exEZk-00053y-QI for pgsql-general@arkaria.postgresql.org; Sat, 17 Mar 2018 16:20:56 +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 1exEZi-00053n-UA for pgsql-general@lists.postgresql.org; Sat, 17 Mar 2018 16:20:56 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1exEZf-0005Gh-1n for pgsql-general@postgresql.org; Sat, 17 Mar 2018 16:20:53 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CEFB220D6B; Sat, 17 Mar 2018 12:20:49 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Sat, 17 Mar 2018 12:20:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc: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=CZSuPbjFwiqxkUoLQOXsWEnY/hv+r cors/iX+qaNo4Q=; b=CdmVG4DXC5sK9TdSgpDqNaCanm6wL39yhpkjfIUgFh8Vo O97IwJPZEGb/sYu54xqe6RNk40N0S7sK8NL1kHaMu8fJTwhhRIPIL+VLWSNB7MQW v9ukLcD/zz18pCuws/J7wfTBKNYli/zkxcZc4m6gGCow5tKECs7ozxIv6pxeFGq5 GadsDNvk9AcIKbMbrfxJq8P+bWqo4ydaepEO4b4P5HqoSsP/ViAUNgIy3z0MN63/ NO7pEHrq/Kcvl+cGi4CTwwEVm5Xj8Bd4sti1Q7rteZIH7g9uf6gl6IiPo+rZTzes 8IhFZ0vNDGTC1J1y+1QzX+wc1nSSs7BuI8WHoH/4Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=CZSuPb jFwiqxkUoLQOXsWEnY/hv+rcors/iX+qaNo4Q=; b=W/rF4ReOz6/29J0lR6JckS /c9INJQPhcUZCM3qTCWbum2Gf3X9TnXqlmFpqQWWfb/1LzShS7bcv/hfBT1kJRfn N2XDdLH2/8txMEf0u1sJFBeXkS0HTicW59MtiJwo0t73TAodM1x5gs5hh7h8Hm8U mOrjHTbYuYivvl08+mgp/Ad37porljA+/0pLOWpHUK1EcUeEu1qVSKk/zo1ex/yv 2+JrftB3pER0SggWaEt7y4zd95kS+Ib2kAcXp+Tg/Lh/SuYldP407ZWNXtF5Vtbl PifKNVUIcmxFqY8LKrQLTpJVA4v9kPp7U7x70Gu3FzaV8/7upU/Xh/K4+PKBAlNQ == 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 32D617E17C; Sat, 17 Mar 2018 12:20:49 -0400 (EDT) Subject: Re: What is the meaning of pg_restore output? To: Alexandru Lazarev , Tom Lane Cc: pgsql-general@postgresql.org References: <29718.1520544753@sss.pgh.pa.us> From: Adrian Klaver Message-ID: Date: Sat, 17 Mar 2018 09:20:48 -0700 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/17/2018 07:30 AM, Alexandru Lazarev wrote: > Hi All, Thanks for your replies. > What about "item" key-word - is it appearing only when -j > 1? > > 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) > > > 2. Are they (output phrases) documented somewhere? Grepping source in src/bin/pg_dump/: https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/bin/pg_dump/pg_backup_archiver.c;h=8892b177905ea81b58ddbc728fd46d47e2d017c6;hb=65c6b53991e1c56f6a0700ae26928962ddf2b9fe if (do_now) { /* OK, restore the item and update its dependencies */ ahlog(AH, 1, "processing item %d %s %s\n", next_work_item->dumpId, next_work_item->desc, next_work_item->tag); Which is in section with this comment: /* * Main engine for parallel restore. * * Parallel restore is done in three phases. In this first phase, * we'll process all SECTION_PRE_DATA TOC entries that are allowed to be * processed in the RESTORE_PASS_MAIN pass. (In practice, that's all * PRE_DATA items other than ACLs.) Entries we can't process now are * added to the pending_list for later phases to deal with. */ -- Adrian Klaver adrian.klaver@aklaver.com