Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vQqbh-001H9e-2w for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Dec 2025 17:25:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vQqbh-00EvGy-03 for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Dec 2025 17:25:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vQqbg-00EvGq-0Y for pgsql-hackers@lists.postgresql.org; Wed, 03 Dec 2025 17:25:37 +0000 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vQqbd-002xGb-1I for pgsql-hackers@lists.postgresql.org; Wed, 03 Dec 2025 17:25:36 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 67050EC04D8; Wed, 3 Dec 2025 12:25:30 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Wed, 03 Dec 2025 12:25:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm2; t=1764782730; x= 1764869130; bh=j7QsNbrhoTu4VP9eYy33pO58yQGieKlkRzdFgiK6pOc=; b=4 SnyK+ExW0++NbKFAQiWUbzLcat8uofaARWYLFnJOFpkB6zoW1fXwHJlmio9ou+IJ E17C2u+Ha64BNEvx5KsehfC6RTbh/++XMxENUUCdddTTyYBkeqmVKslcu7702dp2 MYLB9hqk06NRHF//VkHeJJDEWR8u7AAFpxymAk9SmM1ont3MoTVmygYOJRL8C1gh 1z8Dc/LWJcvD5J92/Lg+3imCt1BybNnhMJLUrOews0tG1FT8OBFq0J1Ycfe4V71Y Mr19+X404n4SHb3NVQx9luY7JGozJdKNEC//SCeZclOqWJLsg5seBLzcORZRIqSA 5QvwHzKQ3b9pJ6y8R3jJg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1764782730; x=1764869130; bh=j 7QsNbrhoTu4VP9eYy33pO58yQGieKlkRzdFgiK6pOc=; b=Dr+dxRoP/jDBH3tIY m2WlyOv5jMJUVHlWMEqXzztfWBubho+bvcnvAUPEjiqgZzUcdDdTCTgGyovrd+XO f+1hmNmFaoZ2lqsbBzFUn0tO2pEWerJcXvK+7gQXPCPwSfVmgZo8x/jzg/eASfmj /9q8gGmtpuTJOR3sttkdoYC5eupKeU0wggUjX5rAr9Fn1B5WVqxZ/nn47d4R2+3g +d0TbkXbemncfOLV6fec6NGELvZNzyQyQx0mP+zf8+A4F/kNL7/BVluBra45ZfBl 3aqL6qP+6mntZL4YZDq3iqW8ootNrJGh87AlfAz9sONc0VGLcuuLBgqC/dNl332t x8L9A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdefgedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh epfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhhoucfj vghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtffrrg htthgvrhhnpeetuedvheffkeevgfeuheevteevkefggedttdeufeeuheduuddthfeffffh jeefffenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsehk uhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeejpdhmohguvgepshhmthhpohhuth dprhgtphhtthhopegrnhgurhgvfiesughunhhslhgrnhgvrdhnvghtpdhrtghpthhtohep lhhirdgvvhgrnhdrtghhrghosehgmhgrihhlrdgtohhmpdhrtghpthhtohepnhgrthhhrg hnuggsohhsshgrrhhtsehgmhgrihhlrdgtohhmpdhrtghpthhtoheprhgrhhhilhgrshih vgguledtsehgmhgrihhlrdgtohhmpdhrtghpthhtoheprhhosggvrhhtmhhhrggrshesgh hmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhs rdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrd hprgdruhhs X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 3 Dec 2025 12:25:29 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1764782727; bh=knge2kJ38dmfo9tWnDZ9y4chTBDMDOqSmqMRYyOHd3M=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=5+XWGy+5Gv+Ik6rq8mUBrTN/uM/fLQeKS/SVz8gA23klVtFRZ4KEyohgjxBJhUFQq EW3FiJuwDWo5JIAiASlpWazGM9CLQGawyVXklFgVbFqhTCKDB8zt8W2S2B3CYJjjNM y5c+D0oQMQOfOmDFVl4XC1gkrnJEcgBH2SDo6kWsRt5sETxqGk3NCfnK0uHA1PasIc p/9JAJqw/jYY0Kb08GBDd3860lNYkq8otvy15MiiVkSosbCBMK8P38yO0l20uf9DqV 4EsDkfqEixb/co1VaXM9qXCE7S0Jm+zKNnSV/aPV2gBi8fHrOGk5/zLn3tGRIRdvH3 0PmgFq2TdEspw== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id D1D3D7B; Wed, 03 Dec 2025 18:25:27 +0100 (CET) Date: Wed, 3 Dec 2025 18:25:27 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Andrew Dunstan Cc: Chao Li , Tom Lane , Nathan Bossart , Rahila Syed , Robert Haas , PostgreSQL Hackers Subject: Re: pgindent versus struct members and typedefs Message-ID: <202512031723.4j5jk5sqv5rc@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Dec-03, Andrew Dunstan wrote: > +1. One of the things I find particularly un-aesthetic is having some > branches of an if statement with braces and some without. We have lots of > cases of that, but I try to avoid it. I actually prefer that style: when there are only two branches, and the other branch of the if is long, I put the short one first without braces, and then braces around the long "else" one. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "The eagle never lost so much time, as when he submitted to learn of the crow." (William Blake)