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 1gemV3-0007C0-J1 for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Jan 2019 19:48:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gemV2-0001VR-Dk for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Jan 2019 19:48:20 +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 1gemU5-00040e-SN for pgsql-hackers@lists.postgresql.org; Wed, 02 Jan 2019 19:47:22 +0000 Received: from mail-qt1-f175.google.com ([209.85.160.175]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gemU2-0003UU-Do for pgsql-hackers@lists.postgresql.org; Wed, 02 Jan 2019 19:47:20 +0000 Received: by mail-qt1-f175.google.com with SMTP id d19so34630085qtq.9 for ; Wed, 02 Jan 2019 11:47:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=eH9EFeSa25IAhX0dc7x4VjiwD/TNI+YkLWvL4f28PJI=; b=RY2I1JT62RYqMgwkCDDIK3ZGyyW0MKg+Yzi5rygfcBHB6d9oFyClyZCftxalQ81dQ2 5aHTFvympXGnNioFZXG67T6SuQSBthSfR8q03w+UAEbJv9E3qfALH6YHhKbnpyuCZ6Dx 6Q1ryt6xNoOS8ZFs1Eugw3aF73A6YQf8zERwwP26rTpx9LAdgOLHltVcPnzbii+pN0fZ lUQvtaa+yMfQd0itF6dmBQspxq6Z9DF8z13dsxnwV4ZwE67PHWHCShBFzNfU/RA4sMAK zMju5Zs4KAoz8mg5MTOs4u/PHTP27l+a1RlpFeMwXgkmLnLD3v3jG5ivUJqrWc+RAqgm JmxA== X-Gm-Message-State: AJcUukeUzSWgZOJ/rJZH+DVUuebH1T2vyI1akV8zLnimhH6DhYHeL9Y5 8t1V5z/hvncQVwDVBW0ijcH5Zg== X-Google-Smtp-Source: ALg8bN6HRguBI5tBD37pEpci669bnCnhUe7adA9XX9mFCoJ8FQPi8gza/UQjkhnKxvzGpqgUjC9Iqg== X-Received: by 2002:a0c:8c8a:: with SMTP id p10mr44247726qvb.218.1546458437040; Wed, 02 Jan 2019 11:47:17 -0800 (PST) Received: from localhost.localdomain (c-24-61-8-151.hsd1.ma.comcast.net. [24.61.8.151]) by smtp.gmail.com with ESMTPSA id f31sm26350041qtc.42.2019.01.02.11.47.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jan 2019 11:47:16 -0800 (PST) Reply-To: jesper.pedersen@redhat.com Subject: Re: pg_upgrade: Pass -j down to vacuumdb To: Peter Eisentraut , "pgsql-hackers@lists.postgresql.org" Cc: Bruce Momjian References: <11b6b108-6ac0-79a6-785a-f13dfe60ab92@redhat.com> From: Jesper Pedersen Organization: Red Hat Message-ID: <2dc5eaeb-e60d-2a16-696e-7b4d3d3548cb@redhat.com> Date: Wed, 2 Jan 2019 14:47:15 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 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 Hi, On 12/29/18 10:03 AM, Peter Eisentraut wrote: > On 21/12/2018 11:12, Jesper Pedersen wrote: >> Here is a patch that passes the -j option from pg_upgrade down to >> vacuumdb if supported. > > It's not clear to me that that is what is usually wanted. > > The point of the post-upgrade analyze script is specifically to do the > analyze in a gentle fashion. Mixing in parallelism would seem to defeat > that a bit. > Well, that really depends. The user passed -j to pg_upgrade in order for the upgrade to happen faster, so maybe they would expect, as I would, that the ANALYZE phase would happen in parallel too. At least there should be a "notice" about what the script will do in this case. Best regards, Jesper