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 1m1Yje-0003Bq-BE for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jul 2021 18:26:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m1Yjc-0006Yn-FA for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jul 2021 18:26:52 +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 1m1Yjc-0006Yf-7X for pgsql-hackers@lists.postgresql.org; Thu, 08 Jul 2021 18:26:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1YjZ-0000Z3-Ui for pgsql-hackers@lists.postgresql.org; Thu, 08 Jul 2021 18:26:51 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 168IQk842035770; Thu, 8 Jul 2021 14:26:46 -0400 From: Tom Lane To: Alvaro Herrera cc: Dagfinn Ilmari =?utf-8?Q?Manns=C3=A5ker?= , PostgreSQL Hackers Subject: Re: Replace remaining =?utf-8?B?Y2FzdE5vZGUo4oCmLCBsZmlyc3Qo4oCm?= =?utf-8?B?KSk=?= and friends calls with l*_node() In-reply-to: <202107081817.mkd7in7le6qr@alvherre.pgsql> References: <202107081817.mkd7in7le6qr@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Thu, 08 Jul 2021 14:17:41 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2035768.1625768806.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Thu, 08 Jul 2021 14:26:46 -0400 Message-ID: <2035769.1625768806@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > On 2021-Jul-07, Dagfinn Ilmari Mannsåker wrote: >> PartitionRangeDatum *datum = >> - castNode(PartitionRangeDatum, lfirst(cell)); >> + lfirst_node(PartitionRangeDatum, cell); > This is pretty personal and subjective, but stylistically I dislike > initializations that indent to the same level as the variable > declarations they follow; they still require a second line of code and > don't look good when in between other declarations. Yeah, this seems like a pgindent bug to me, but I've not mustered the energy to try to fix it. As you say, it can be worked around by not trying to lay out the code that way. regards, tom lane