Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5ZX6-0005Rz-RA for pgsql-hackers@arkaria.postgresql.org; Wed, 25 May 2016 14:11:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b5ZX6-0002pF-9k for pgsql-hackers@arkaria.postgresql.org; Wed, 25 May 2016 14:11:36 +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 1b5ZX5-0002p9-OP for pgsql-hackers@postgresql.org; Wed, 25 May 2016 14:11:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b5ZX2-00015G-G7 for pgsql-hackers@postgresql.org; Wed, 25 May 2016 14:11:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u4PEBSP2024578; Wed, 25 May 2016 10:11:29 -0400 From: Tom Lane To: Kyotaro HORIGUCHI cc: pgsql-hackers@postgresql.org Subject: Re: Parallel pg_dump's error reporting doesn't work worth squat In-reply-to: <20160525.173041.123092921.horiguchi.kyotaro@lab.ntt.co.jp> References: <1336.1464025230@sss.pgh.pa.us> <20160525.130137.175160263.horiguchi.kyotaro@lab.ntt.co.jp> <3149.1464149757@sss.pgh.pa.us> <20160525.173041.123092921.horiguchi.kyotaro@lab.ntt.co.jp> Comments: In-reply-to Kyotaro HORIGUCHI message dated "Wed, 25 May 2016 17:30:41 +0900" Date: Wed, 25 May 2016 10:11:28 -0400 Message-ID: <24577.1464185488@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Kyotaro HORIGUCHI writes: > I tried it on Windows 7/64 but first of all, I'm surprised to see > that the following command line gets an error but it would be > fine because it is consistent with what is written in the manual. > | >pg_dump postgres://horiguti:hoge@localhost/postgres --jobs=9 -Fd -f testdump > | pg_dump: too many command-line arguments (first is "--jobs=9") > | Try "pg_dump --help" for more information. Where do you see an example like that? We should fix it. The only case that is certain to work is switches before non-switch arguments, and so we should not give any documentation examples in the other order. On a platform using GNU getopt(), getopt() will rearrange the argv[] array to make such cases work, but non-GNU getopt() doesn't do that (and I don't really trust the GNU version not to get confused, either). > I might be wrong with something, but pg_dump seems to have some > issues in thread handling. Wouldn't surprise me ... there's a lot of code in there depending on static variables, and we've only tried to thread-proof a few. Still, I think that's a separate issue from what this patch is addressing. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers