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 1gn4yH-0000pI-Qp for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Jan 2019 17:08:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gn4yG-0006JG-EU for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Jan 2019 17:08:48 +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 1gn4yG-0006J9-4L for pgsql-hackers@lists.postgresql.org; Fri, 25 Jan 2019 17:08:48 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gn4yC-0006zY-SF for pgsql-hackers@lists.postgresql.org; Fri, 25 Jan 2019 17:08:46 +0000 Received: by mail-qt1-x844.google.com with SMTP id i7so11419408qtj.10 for ; Fri, 25 Jan 2019 09:08:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=9mX2aDlYMQa9nURMvs1kCwzhyqUVyw0SF7qk6Gl1xXM=; b=aCFLvSWN3mHpAlkLcdkucVMpwXNwfYYlJ/6Ii2yxUBUwfOQ0c3wBWBcDZTzWY0x1XP ql7rktPcttiktGcnsJUWo4AXtyLZBp/A2KzjvbTNDX+aJObmgu2GekRqP7x6WDNwaXNt 2F8MHl/XuBzUbMFgkmBt9sRtjQ+uPLJIG7qHUhK5TJf3kFxdq6jANO61GLirQPxzlzi4 j7DrIgWqYqri2x7rLWMeOyNiyDHHIv60iapZU5J2/fvQEP1WhSp8g+BlYNWKS9wtaBY3 /j4S4baAVOl28YHH0mm35KT1EcICnbw2UL0d3/g7VwQ3/EJn9mqg265iFkhpN6hfGW0r h4hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=9mX2aDlYMQa9nURMvs1kCwzhyqUVyw0SF7qk6Gl1xXM=; b=CwTIrEVRPuXZ+VitnI0GUH9NB2jHbTee1yMbCDbrwWhNtFYKDcntpfbvCXzJXEeRTH R4NL8ta2u+h33QI+QB1n4O+sm2YEuUSNCSnkeuhTG8pJyweMaf9+r+8MiNReLGv7CeCD pqOKjDy5892WoD8YYzk16sAkmJSMdbGy3fWL+Gz56O/sM0f3CnvKrnXKA5ukDXaeaP1B md2dLqCvLt0fyhTrAoC6WfQGBOT7v2WW+A21yabzbzxm3lSMaZJTJqkbNblFv4gs4RgG 1KpVnFL6wtI8mjEvLpq5cv0Lp8rIMwtYXUzd9mqRBCwSxfLJAJhSpub99S92S9nD9xx5 Dx/g== X-Gm-Message-State: AJcUukfBzzi4bDGXpMPpPQQ+u12UbqynW69O2t3Pna7bYQfR9P7eqtYK 5ZlS25bHLB7q/kb3BQLOXVLnfQ== X-Google-Smtp-Source: ALg8bN782Qm7VoBApdMtrcVeruvPkixQpzZZoNekcXpMWnt8duPxVfkxDJSoMU2gAi90fijXU8Pu1w== X-Received: by 2002:ac8:2d2b:: with SMTP id n40mr11419572qta.38.1548436124208; Fri, 25 Jan 2019 09:08:44 -0800 (PST) Received: from alvin.alvh.no-ip.org ([201.186.80.67]) by smtp.gmail.com with ESMTPSA id y12sm91187646qta.13.2019.01.25.09.08.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Jan 2019 09:08:43 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 0D9E66D8; Fri, 25 Jan 2019 14:08:42 -0300 (-03) Date: Fri, 25 Jan 2019 14:08:42 -0300 From: Alvaro Herrera To: Peter Eisentraut Cc: Michael Paquier , "Jamison, Kirk" , "'jesper.pedersen@redhat.com'" , "pgsql-hackers@lists.postgresql.org" , Bruce Momjian Subject: Re: pg_upgrade: Pass -j down to vacuumdb Message-ID: <201901251708.ha3sgz7dn4rm@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716-1013-2c1e88 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Jan-25, Peter Eisentraut wrote: > On 25/01/2019 11:28, Michael Paquier wrote: > > based on that linking the value used by pg_upgrade and vacuumdb is a > > bad concept in my opinion, and the patch should be rejected. More > > documentation on pg_upgrade side to explain that a bit better could be > > a good idea though, as it is perfectly possible to use your own > > post-upgrade script or rewrite partially the generated one. > > Right. pg_upgrade doesn't actually call vacuumdb. It creates a script > that you may use. The script itself contains a comment that says, if > you want to do this as fast as possible, don't use this script. That > comment could be enhanced to suggest the use of the -j option. So let's have it write with a $VACUUMDB_OPTS variable, which is by default defined as empty but with a comment suggesting that maybe the user wants to add the -j option. This way, if they have to edit it, they only have to edit the VACUUMDB_OPTS line instead of each of the two vacuumdb lines. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services