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 1kpKwh-0005Lp-7v for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Dec 2020 00:45:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kpKwg-0001zW-2Q for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Dec 2020 00:45:34 +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 1kpKwf-0001zO-Rr for pgsql-hackers@lists.postgresql.org; Wed, 16 Dec 2020 00:45:33 +0000 Received: from wnew1-smtp.messagingengine.com ([64.147.123.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kpKwX-00050x-6i for pgsql-hackers@lists.postgresql.org; Wed, 16 Dec 2020 00:45:33 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.west.internal (Postfix) with ESMTP id 99D3AD51; Tue, 15 Dec 2020 19:45:21 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 15 Dec 2020 19:45:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=K6JwxoD65fWa/sL3p JAEHCVhub3EXz/zRCo74bCgHgU=; b=NxUL2rcnWLbi8QeUoDmxkQZoeqKNFUVbl YtSgGB6/eDLlqf3U7H+AxZnydFj3NSyjfEBEYZIZUmXmv/wnrHkZDTMzBRsyJvLG ciMH/jx4wb1jTCG8su+UN/WCzvPwN6JeFSj9ldYzcTqsXABi2L0x8DJEdkE3RW/i trdcRctleXjDM0M6WRTvxr8Jo42PFkykJyoDS/cvG9mm9s8T9vyGFCquKJzeSnxr B4w5+75JAQhki6iiamIhR6oUvvNx/vIWTAOPoCIydvkb0GPkwBzUsbUdyvIJYT8g Qqk9JjfwP+jOHMqkF3tn6o9IDIxtVU+ozW69nYd2qBZp+JuPKvekw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeluddgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggujggfsehttdertddtredvnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeevgfelveegueejgefhgeetgefhgeehieefheehleetteei udeiiefhgffgheffteenucfkphepudeltddrleehrddukedrjeelnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhv hhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.18.79]) by mail.messagingengine.com (Postfix) with ESMTPA id 8616D108005F; Tue, 15 Dec 2020 19:45:19 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 3B3092A0676; Tue, 15 Dec 2020 21:45:17 -0300 (-03) Date: Tue, 15 Dec 2020 21:45:17 -0300 From: Alvaro Herrera To: Peter Eisentraut Cc: Michael Paquier , 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: <20201216004517.GA18498@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7ec67c56-2377-cd05-51a0-691104404abe@enterprisedb.com> 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-Dec-12, Peter Eisentraut wrote: > On 2020-12-11 21:27, Alvaro Herrera wrote: > > By the way-- What did you think of the idea of explictly marking the > > types used for bitmasks using types bits32 and friends, instead of plain > > int, which is harder to spot? > > If we want to make it clearer, why not turn the thing into a struct, as in > the attached patch, and avoid the bit fiddling altogether. I don't like this idea too much, because adding an option causes an ABI break. I don't think we commonly add options in backbranches, but it has happened. The bitmask is much easier to work with in that regard.