Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOYnY-0002Kg-1H for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Apr 2020 03:33:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jOYnV-0003Ym-Mn for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Apr 2020 03:33:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOYnV-0003Yf-Ci for pgsql-hackers@lists.postgresql.org; Wed, 15 Apr 2020 03:33:09 +0000 Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jOYnS-0005oQ-3A for pgsql-hackers@postgresql.org; Wed, 15 Apr 2020 03:33:08 +0000 Received: by mail-qk1-x72b.google.com with SMTP id 20so7776845qkl.10 for ; Tue, 14 Apr 2020 20:33:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=te7k46smgRG8THxjpiLWdpNno1pE8Qwbesby7GqVAwg=; b=1vxLtMEAiMElZ0wav4FwNqFZ/Qbh7jK/IWT59FOzHYY9bFDGqCfrVv7O2rM7UFZV37 i566jaldXzgrEjJvCEPWiOm1v+NMV+VMTI8O4C2i6m69Be1RCpoTxbVK+zsa6HkRY0hC 5tiXYONAUkIhIOoJgPsA6ZufZIT2xKG6kb8zjxsVpJ1ZtnI9d+AxvozR5M5nlIuPlX/t RlEaz7kJnvhxnOqgecYY3q97Iu58/kNXD4WkE2ywHxW59ZIfJdEG/VFe80DN3x6ba8KF b2wwEVd2+5wdJIbxuJk8Kb+MBL/m+Es0X2TYujBJPcfzTVpi46N/iQQd7HwUXR0Qu8Dv HSmg== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=te7k46smgRG8THxjpiLWdpNno1pE8Qwbesby7GqVAwg=; b=IhdTaDo3mC4SFOYTDD07Yk/TuB9lMEJF+xtUpkNNNgACwwbzgsrou9o+3/qL7+jdnv rleX6V9wLrkkF1gXFic6LxmFmaRch4Nlck3IsFVckiMoFKGEDbxau3p7oV8qULEmGXWp mZA2rfeQ1NduvnczzAZJIwA47kiYdZTB8vMvKrU0jWQMchwGDnyohIaVbHlbWsPe8Rsu O6RaayBg/XbjRgznOQa1qjy8tzFAscTFp/i9Q2REf79sDc5baeVlXbaWD3NXGsWjme20 JeVFbYftzhGT948PTAqLwPlsDLajTmukLuaIiTpkokPzk9UCWghs/YAiLb2EPDWnRK7u xvFQ== X-Gm-Message-State: AGi0PubVMPPN0L4ml3J49drr7VU4Xo6d9ie8hmgFVuDbQ8tDWyFpAITW lsGRyS72mGFFPm0GcG3N0rM7rw== X-Google-Smtp-Source: APiQypJhLpwr/ruYOm7DV7lPW6/IHh1iM61Ro8xfktCDLwrh+IwdQ4QvQI3oS3QW71vxbvkR9uYkgg== X-Received: by 2002:a37:4ec8:: with SMTP id c191mr18361030qkb.368.1586921584260; Tue, 14 Apr 2020 20:33:04 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id p186sm11938039qkb.71.2020.04.14.20.33.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Apr 2020 20:33:03 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 77E8F800C2E; Tue, 14 Apr 2020 22:33:01 -0500 (CDT) Date: Tue, 14 Apr 2020 22:33:01 -0500 From: Justin Pryzby To: Amit Kapila Cc: Michael Paquier , Masahiko Sawada , Mahendra Singh Thalor , Robert Haas , tushar , pgsql-hackers@postgresql.org Subject: Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Message-ID: <20200415033301.GJ2228@telsasoft.com> References: <20200409083319.GN2228@telsasoft.com> <20200410133532.GA2228@telsasoft.com> <20200414022242.GG1492@paquier.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Apr 15, 2020 at 08:54:17AM +0530, Amit Kapila wrote: > On Tue, Apr 14, 2020 at 8:55 AM Amit Kapila wrote: > > > > On Tue, Apr 14, 2020 at 7:52 AM Michael Paquier wrote: > > > > > > > > -VACUUM (PARALLEL 1) tmp; -- disables parallel vacuum option > > > +VACUUM (PARALLEL 1) tmp; -- parallel vacuum disabled for temp tables > > > WARNING: disabling parallel option of vacuum on "tmp" --- cannot vacuum temporary tables in parallel > > > +VACUUM (PARALLEL 0, FULL TRUE) tmp; -- can specify parallel disabled (even though that's implied by FULL) > > > > > > To fully close the gap in the tests, I would also add a test for > > > (PARALLEL 1, FULL false) where FULL directly specified, even if that > > > sounds like a nit. That's fine to test even on a temporary table. > > > > > > > Okay, I will do this once we agree on the error message stuff. > > > > I have changed one of the existing tests to test the option suggested > by you. Additionally, I have changed the docs as per suggestion from > Sawada-san. I haven't changed the error message. Let me know if you > have any more comments? You did: |...then the number of workers is determined based on the number of |indexes that support parallel vacuum operation on the [-relation,-]{+relation+} and is further |limited by . I'd suggest to say instead: |...then the number of workers is determined based on the number of |indexes ON THE RELATION that support parallel vacuum operation, and is further |limited by . -- Justin