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 1ksF6q-0000Cj-Mj for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Dec 2020 01:08:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ksF6p-0001d7-L3 for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Dec 2020 01:08:03 +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 1ksF6p-0001cz-Aq for pgsql-hackers@lists.postgresql.org; Thu, 24 Dec 2020 01:08:03 +0000 Received: from mail-il1-x130.google.com ([2607:f8b0:4864:20::130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ksF6j-0000tC-O5 for pgsql-hackers@lists.postgresql.org; Thu, 24 Dec 2020 01:08:02 +0000 Received: by mail-il1-x130.google.com with SMTP id t9so758247ilf.2 for ; Wed, 23 Dec 2020 17:07:57 -0800 (PST) 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=jrbL//NAG1nqO+ghKp6qBTGTyrHtJPnf/UpZWgH2zLQ=; b=ZEZkaL2FSmlRI67/iHNRp1kAq5dM6aS3X0uzcqNBbi+Ej6p2OYwVMDupuDMmIe3zkL c1luPl/s2xmPE2ymGCumkhIldDv2ZZ02HjLGDnu+96SCKorcql8mDyl2I6qwzhiiAijh HgSO5Pi9AAz+uj1Fko/19Hb86E73pk5TsHdZ7awqRaJVwF7BarUJyQdzVj9GWMuZqAcu 5iZm46nAu6HGa04eE7UD1GprJPY5BksUikLPjnaxwQz8kZIAlXO3e0fdtLrvWMfmOLgL +PZN6L23Ncon7aNGhwsuxqt5WsrnEzCcdh3I/Ln6CxewaQlsQAiiZIKOt6y0O5YU7CXe pVaQ== 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=jrbL//NAG1nqO+ghKp6qBTGTyrHtJPnf/UpZWgH2zLQ=; b=fdwPIxwq44US5idXfA7una1fZjc/nOQnpynsAO0DKxCd7t5C1Ii4pWdqyXlku/pk1/ 9iX9y3RxNkkGMrHBOwT5fiP5F2bJpceDO5uumjAvCBIeES3uHlE1TmdAQkBazP8FldRk CaC+mxjSMjjHoY4isj/bR0fi/iqOL0/FDIOYMuRbsgvqDrLaZZJzqqPUfb0GLsL0+dOO Dj9jS+pz0xJE5OliWUvd3EE0ledQS9FOhB92EWvis52KCDZ4QJIeSX+hwuiU0d8/xZyF ALvfCRXgsdZ6Ekg0E/DEtpDtK7cewpwHBeUpBET24jOc4CBprrBOYbQq79enVetSo9VU c97Q== X-Gm-Message-State: AOAM531uJQy0Yiuy6bjkmGq4QlWNHCgHy48Xz7rtu6NOV6d/lJtJXhk/ McliuOX8ZyuQFgSPWMhlwg2F+A== X-Google-Smtp-Source: ABdhPJz/9eaBGk1lwy1mHOtJs2Eu+xmCr/nQAorPYyQDdxrb9phvh29SmPSuXNJZqE+FVhQeAuRgfA== X-Received: by 2002:a92:ad05:: with SMTP id w5mr26435266ilh.226.1608772076847; Wed, 23 Dec 2020 17:07:56 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id o10sm19738105ili.82.2020.12.23.17.07.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Dec 2020 17:07:56 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 352E0800F8D; Wed, 23 Dec 2020 19:07:54 -0600 (CST) Date: Wed, 23 Dec 2020 19:07:54 -0600 From: Justin Pryzby To: Alvaro Herrera Cc: Michael Paquier , Peter Eisentraut , 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: <20201224010754.GV30237@telsasoft.com> References: <20201223224749.GT30237@telsasoft.com> <20201224001418.GA13286@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201224001418.GA13286@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 Wed, Dec 23, 2020 at 09:14:18PM -0300, Alvaro Herrera wrote: > On 2020-Dec-23, Justin Pryzby wrote: > > > This was getting ugly: > > > > extern void reindex_index(Oid indexId, bool skip_constraint_checks, > > char relpersistence, int options, Oid tablespaceOid)Z > > Is this what I suggested? No ; that was from an earlier revision of the patch adding the tablespace, before Michael suggested a ReindexOptions struct, which subsumes 'options' and 'tablespaceOid'. I see now that 'skip_constraint_checks' is from REINDEX_REL_CHECK_CONSTRAINTS. It seems liek that should be a REINDEXOPT_* flag, rather than REINDEX_REL_*, so doesn't need to be a separate boolean. See also: 2d3320d3d. -- Justin