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 1kD8S1-0007jd-Jm for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Sep 2020 15:44:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kD8S0-00045P-Dy for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Sep 2020 15:44:00 +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 1kD8S0-00045I-2t for pgsql-hackers@lists.postgresql.org; Tue, 01 Sep 2020 15:44:00 +0000 Received: from mail-il1-x142.google.com ([2607:f8b0:4864:20::142]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kD8Rx-0006xb-J2 for pgsql-hackers@lists.postgresql.org; Tue, 01 Sep 2020 15:43:59 +0000 Received: by mail-il1-x142.google.com with SMTP id q6so1566181ild.12 for ; Tue, 01 Sep 2020 08:43:57 -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=cblG+ifDk1Q9JXr/I1VixcCF5luJMqz3mdou2jIlKqA=; b=LFM2jWHfmMuUbAtzg4z5Xe9foQfNaLspL+zw31JZMN562fyZt/0NNvprFiLwPiIWmB 2K18hLIYF2pKX4uqLJjOv5p4IH6lUdWXVdmgVIJB15z7wh/bmfyakQkTqLUtQxdwXdcW nXaNLycEs8CNu/xc0WQgI3I+rJEKB/sZzns/cNPKz8isD2LQP9lftCHy/N8FNIx1l1/b RnJxJ5IXnfiZORJopDq8DKo68CtMmt1jDktnp5bZofLUC/6KnDC6gKKPLqB/llYsWgF7 pyxynt1mvndiQtIN8OdBYx7PuO+/rDDdcZ+mTkw3rmeeTqGdJFwWsFcoEn0duzeiqjzx i7TA== 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=cblG+ifDk1Q9JXr/I1VixcCF5luJMqz3mdou2jIlKqA=; b=RrMQqNBHzrzZLc1OPuMH8SRBWLEL17/OrOK8GcxJ4k4Bj+3x/mbrvvw/g32Fk1pOd/ Gth9c79SLOfAjNmY2idVOetEZ6bfEcZD32vXLL1UGhXGh7gkd1xQU/XPnVweh+B/8yNO eJtHdusj798LPC6Zvf9s7pjh4WbYwxir+AF5PzsagMO5+t9MXgXK9DQ4+GGqjOrs+Gmp rGaonTTjvbPe2yURcFH50Pd3SC/ei4QDNn5W2IgQWmaNszq+4vxSidgoz5Q+BzIQpqpR 5hGoPNDkUbg5atIxHw4Ljcguov9zo14Lf9ATCZOTT47rkY6F3WFZOv+HZchXxCPR1CAy PW7Q== X-Gm-Message-State: AOAM530J+/gn1GwrjqPVTXoj/yKrq/rvbwkUds24/HJhBx7K2tVtp2Z1 2XPax0daOllWRWRNsj9qqIoE5A== X-Google-Smtp-Source: ABdhPJynQrLqqsKEFHOfOmJdI/1XZ/8lOJ7F3Om+W7eV9qP5BSOWdV+cZgVutIK7kAMKhY/8d5NHUA== X-Received: by 2002:a92:6906:: with SMTP id e6mr1734081ilc.249.1598975036020; Tue, 01 Sep 2020 08:43:56 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id v2sm736021ilh.33.2020.09.01.08.43.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Sep 2020 08:43:55 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 3B6178004CC; Tue, 1 Sep 2020 10:43:54 -0500 (CDT) Date: Tue, 1 Sep 2020 10:43:54 -0500 From: Justin Pryzby To: Alvaro Herrera Cc: Michael Paquier , Alexey Kondratov , Masahiko Sawada , Steve Singer , pgsql-hackers@lists.postgresql.org, Robert Haas , Alexander Korotkov , Masahiko Sawada , Jose Luis Tallon Subject: Re: Allow CLUSTER, VACUUM FULL and REINDEX to change tablespace on the fly Message-ID: <20200901154354.GD5450@telsasoft.com> References: <20200811070922.GP20473@telsasoft.com> <20200901154018.GA7815@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200901154018.GA7815@alvherre.pgsql> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Sep 01, 2020 at 11:40:18AM -0400, Alvaro Herrera wrote: > On 2020-Aug-11, Justin Pryzby wrote: > > On Tue, Aug 11, 2020 at 02:39:45PM +0900, Michael Paquier wrote: > > > > The grammar that has been committed was the one that for the most > > > support, so we need to live with that. I wonder if we should simplify > > > ReindexStmt and move the "concurrent" flag to be under "options", but > > > that may not be worth the time spent on as long as we don't have > > > CONCURRENTLY part of the parenthesized grammar. > > > > I think it's kind of a good idea, since the next patch does exactly that > > (parenthesize (CONCURRENTLY)). > > > > I included that as a new 0002, but it doesn't save anything though, so maybe > > it's not a win. > > The advantage of using a parenthesized option list is that you can add > *further* options without making the new keywords reserved. Of course, > we already reserve CONCURRENTLY and VERBOSE pretty severely, so there's > no change. If you wanted REINDEX FLUFFY then it wouldn't work without > making that at least type_func_name_keyword I think; but REINDEX > (FLUFFY) would work just fine. And of course the new feature at hand > can be implemented. The question isn't whether to use a parenthesized option list. I realized that long ago (even though Alexey didn't initially like it). Check 0002, which gets rid of "bool concurrent" in favour of stmt->options&REINDEXOPT_CONCURRENT. -- Justin