Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8lpg-00047S-Qe for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Mar 2019 13:09:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h8lpe-00015L-KP for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Mar 2019 13:09:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8lpe-00015D-93 for pgsql-hackers@lists.postgresql.org; Tue, 26 Mar 2019 13:09:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8lpX-0000op-FM for pgsql-hackers@lists.postgresql.org; Tue, 26 Mar 2019 13:09:33 +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 x2QD9Jwa015730; Tue, 26 Mar 2019 09:09:19 -0400 From: Tom Lane To: Peter Eisentraut cc: jesper.pedersen@redhat.com, Robert Haas , "Jamison, Kirk" , Alvaro Herrera , Michael Paquier , "fabriziomello@gmail.com" , "pgsql-hackers@lists.postgresql.org" , Bruce Momjian Subject: Re: pg_upgrade: Pass -j down to vacuumdb In-reply-to: <2c054085-0b68-c049-d6d8-8b74852b4c73@2ndquadrant.com> References: <201902010958.cf2cbi3d2ule@alvherre.pgsql> <03845f77-49e7-4569-7062-8ee1fb460ec2@redhat.com> <30470.1553551070@sss.pgh.pa.us> <2c054085-0b68-c049-d6d8-8b74852b4c73@2ndquadrant.com> Comments: In-reply-to Peter Eisentraut message dated "Tue, 26 Mar 2019 12:28:34 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15728.1553605759.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 26 Mar 2019 09:09:19 -0400 Message-ID: <15729.1553605759@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > On 2019-03-25 22:57, Tom Lane wrote: >> + fprintf(script, "echo %sYou may wish to add --jobs=3DN for parallel a= nalyzing.%s\n", >> + ECHO_QUOTE, ECHO_QUOTE); > But then you get that information after you have already started the scr= ipt. Yes, but that's already true of all the info that this script prints out. > I don't find any information about this analyze business on the > pg_upgrade reference page. Maybe a discussion there could explain the > different paths better than making the output script extra complicated. > Essentially: If you want a slow and gentle analyze, use the supplied > script. If you want a fast analyze, use vacuumdb, perhaps with an > appropriate --jobs option. Note that pg_upgrade --jobs and vacuumdb > --jobs are resource-bound in different ways, so the same value might not > be appropriate for both. I have no objection to handling it that way (i.e., just as a doc fix). Or we could do both. regards, tom lane