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 1mzMEu-0000md-De for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Dec 2021 17:14:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mzMEs-000155-Ld for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Dec 2021 17:14:18 +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 1mzMEr-00014w-RS for pgsql-hackers@lists.postgresql.org; Mon, 20 Dec 2021 17:14:18 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mzMEj-0005fl-To for pgsql-hackers@lists.postgresql.org; Mon, 20 Dec 2021 17:14:17 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 202923200C46; Mon, 20 Dec 2021 12:14:06 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 20 Dec 2021 12:14:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=mrwtQTBb7bzyCwluctmrIE1JMC4NJ4yM3uuGmU6YDa4=; b=MM8OiV0e b9ej2FAAxHqZOIGZitGc4Xk/VvhiW3K5wI2KKJIoLc9uKbJm+gxe3j3Sny4pOLFb QbeNq0B/FcdtVn8bxGXWiBZwVhNNN1U3ZSiNlqclwLfsPHIg8L9+XCKTR41jmmEd cQbwtnKYtpugAxg0ZTUXAVVV1clSNGXfzX1a6c+hq1BtwWZGAPyTguWvnG1NYSeW wXfrXlTgb4bxoJH0zKFhR2iGKWTm0Ah9ua8dU07uUcp7LL0QyfMNiA00kmO/uaaY ZY2XFdHXZv5i5t5ttDKyeF8XfHeYY/fc9rSSAB6Qe/6N3yiepiqJF8OYZu/z9ojg ROUg1R528oF2CA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddtvddgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedujeevjeffjeevuddutedvkeeiueeitddvieelfeekveej udefgeeuvdejhfeuleenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Dec 2021 12:14:04 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 58FBE2A0211; Mon, 20 Dec 2021 14:14:01 -0300 (-03) Date: Mon, 20 Dec 2021 14:14:01 -0300 From: Alvaro Herrera To: Peter Eisentraut Cc: Peter Smith , PostgreSQL Hackers Subject: Re: PublicationActions - use bit flags. Message-ID: <202112201714.ql732mnfdrtc@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3b7f2bdd-77ed-00d7-437c-dd9c37e6a2fa@enterprisedb.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Dec-20, Peter Eisentraut wrote: > I don't see why this is better. It just makes the code longer and adds more > punctuation and reduces type safety. Removing one palloc is I think the most important consequence ... probably not a big deal though. I think we could change the memcpy calls to struct assignment, as that would look a bit cleaner, and call it a day. One thing I would not like would be to change the catalog representation from bools into an integer. We do that for pg_trigger.tgflags (IIRC) and it is horrible. -- Álvaro Herrera 39°49'30"S 73°17'W — https://www.EnterpriseDB.com/