Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id EB73EB5DC63 for ; Thu, 1 Sep 2011 11:11:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 88628-03 for ; Thu, 1 Sep 2011 14:10:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f46.google.com (mail-ew0-f46.google.com [209.85.215.46]) by mail.postgresql.org (Postfix) with ESMTP id 53D8EB5DCBB for ; Thu, 1 Sep 2011 11:10:57 -0300 (ADT) Received: by ewy4 with SMTP id 4so1056028ewy.19 for ; Thu, 01 Sep 2011 07:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=dz2tdOY5xV0JA5PbvMXGAMurfpw2V8MFBWaMOLzr3uU=; b=Ll9FnbFz7/lmE7I6HBARpZrtZxEhwIVeNU71AOFJZqdv3RTR/kLDweJmOgkddpjPds mObRvv+iQ7IktYTdMtVJAECIm6qYeoHWBWDMm3384WMQeTDu0Rer+9Hq8ERpQNht7h3F 9AqA/INnOlxD77fX0f8oA7DR3ZquKgC0cY3ck= Received: by 10.223.45.18 with SMTP id c18mr379800faf.86.1314886256996; Thu, 01 Sep 2011 07:10:56 -0700 (PDT) Received: from marco-dalibo (gev44-1-78-228-108-65.fbx.proxad.net [78.228.108.65]) by mx.google.com with ESMTPS id d5sm70013fak.0.2011.09.01.07.10.55 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Sep 2011 07:10:56 -0700 (PDT) Date: Thu, 1 Sep 2011 16:10:52 +0200 From: Marc Cousin To: pgsql-admin@postgresql.org Subject: pg_restore -j mixed and missing lines of output Message-ID: <20110901161052.38981e9b@marco-dalibo> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201109/7 X-Sequence-Number: 38244 Hi, I don't know if this is a known problem, or something I'm doing wrong, but pg_restore -j tends to sometimes mix lines, or even completely drop some. Here is an example (it's a -j12 run): pg_restore: pg_restore: restoring data for table "edw_iu_paglac_axe1_kpi_la= c_month_bh"=20 restoring data for table "edw_iu_paglac_axe1_kpi_lac_month" This is one case when nothing is lost, messages only get mixed. Sometimes,= =20 entire lines disappear (a table's data is restored, but I=C2=A0don't get the 'restoring' or 'finished' message lines). This is on Linux, so looking at pg_restore's code, I read that workers are = forked and printing all on the same file descriptor without locking, so I understa= nd that messages are mixed like this example. I couldn't find any explanation = to the dropped messages though. Anyway, I don't know if this is a known problem. I searched the mailing list with no success. I can provide a full log of a complete restore, without and with -j. Thanks, Marc