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 1kDHaj-00069F-5j for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Sep 2020 01:29:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kDHah-0007cs-3h for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Sep 2020 01:29:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kDHag-0007cl-So for pgsql-hackers@lists.postgresql.org; Wed, 02 Sep 2020 01:29:34 +0000 Received: from mail-qv1-xf43.google.com ([2607:f8b0:4864:20::f43]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kDHae-00069R-Fp for pgsql-hackers@lists.postgresql.org; Wed, 02 Sep 2020 01:29:33 +0000 Received: by mail-qv1-xf43.google.com with SMTP id f11so175720qvw.3 for ; Tue, 01 Sep 2020 18:29:32 -0700 (PDT) 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=el/uZwXQeGnJuEStHtkxmanDTloSZLWy6rSk+MPW0Dg=; b=ExnlS1Vrjr5I0x84ovTC0UobmNlWgCXCdgTH15aH3dz3lVjJpJ9DfEDhbQNkeukXGE E6TDHb197QacCYBJoGs/zLPPdtYa9ZmZl55MfrFYwGvmHiLuKviIqWTrxCstmIfPbeLc encuZ5NxidFI+IuMRzQ4aWAilxGQ/IEWnCEapIySMD4cJroIyHs4ThZeMedc1VK9BvIG 2pztqTI6q2hlmbaZBythPRhkZ0+5/mDnMwCdHglslSmjJvwDFIBFri86JYm+eGFdk5ch BoHlgJByavZgMO8sLbpbJBcQifdKaSmVgu2g4bf3ewW3jg3df7Xlc2aAJb6UalJQA8NH R17A== 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=el/uZwXQeGnJuEStHtkxmanDTloSZLWy6rSk+MPW0Dg=; b=Z5uxSSh6WRSKYCXMAbreRB2tX/R2p/NI+XhXpzQApv9wjbk6hrUfpFvX/7jx/Q5KLi F1rXSiEu3LJ/72hn1EHkaHb+BqO0k+OMd8zFdG6zqSeJ/SjNIqSOTlbcVW4pKc4l5/yQ 6W0R8srTelr/kJlYGeEi4YiwfMTbF3pCI7zWY5YZiXypxLZKgW6GSVB5QEz8T4nienW8 IfqcAtpDc+f7xMu54JWbl9MDaYojnLQJw0OS2TciWUDg79OzphyvG8UpJjSAzz0N3huR Js9Sa5qs4sE8qrHteDdr+OsjrHaFXA9yrPPPKPAgqEJAW3AlDqGSxgK3rrmaNg/OnBAG mtXA== X-Gm-Message-State: AOAM532SXIdqrvDN0mhzblLVojY67t7P0Tt5KjUOWVtIpM2U+7XCErRh HSB+beOMXvprIPl9af31l3xL0Q== X-Google-Smtp-Source: ABdhPJxOrWUuRE+j0bU39Hbfr+YUlVrZZ0gqodMg37s4pYK7Pr26I+wQBJphM9Vp1UikXx35DiewWw== X-Received: by 2002:a0c:ec11:: with SMTP id y17mr4886572qvo.72.1599010171423; Tue, 01 Sep 2020 18:29:31 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id y24sm3386970qtv.71.2020.09.01.18.29.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 18:29:30 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 619DB2A1557; Tue, 1 Sep 2020 21:29:28 -0400 (-04) Date: Tue, 1 Sep 2020 21:29:28 -0400 From: Alvaro Herrera To: Michael Paquier Cc: Justin Pryzby , 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: <20200902012928.GA20037@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200902010012.GE1489@paquier.xyz> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Sep-02, Michael Paquier wrote: > Yeah, I am all for removing "concurrent" from ReindexStmt, but I don't > think that the proposed 0002 is that, because it is based on the > assumption that we'd want more than just boolean-based options in > those statements, and this case is not justified yet except if it > becomes possible to enforce tablespaces. At this stage, I think that > it is more sensible to just update gram.y and add a > REINDEXOPT_CONCURRENTLY. Yes, agreed. I had not seen the "params" business. > I also think that it would also make sense to pass down "options" > within ReindexIndexCallbackState() (for example imagine a SKIP_LOCKED > for REINDEX). Seems sensible, but only to be done when actually needed, right? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services