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 1wMSuB-00073T-0m for pgsql-hackers@arkaria.postgresql.org; Mon, 11 May 2026 15:50:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wMSu9-001Xci-3C for pgsql-hackers@arkaria.postgresql.org; Mon, 11 May 2026 15:50:50 +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 1wMSu9-001Xca-19 for pgsql-hackers@lists.postgresql.org; Mon, 11 May 2026 15:50:49 +0000 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wMSu6-000000004NH-0RYs for pgsql-hackers@lists.postgresql.org; Mon, 11 May 2026 15:50:49 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 800A4140017E; Mon, 11 May 2026 11:50:43 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Mon, 11 May 2026 11:50:43 -0400 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=fm1; t=1778514643; x= 1778601043; bh=TurZ/0DnJlhYR10Umq+YNpsWpI+NIWkzIrjrbpP5YFk=; b=J vtH4S+3WfHSpw4x8AdgnwQeOSQsTqfSbQBO8mH45xpz/d+54GD37FxsR5qTv+H3i 6yf/9PjXhIiPRQzskY8WwqsiQVzZGsRrv4nKRtrcNOfHxFIkrBC0p4hQytMoJ9D0 9Nig5l0xV2j/UJ2/DYN2IH4KNsk4xurFWqZyJ6BjwL1tAYkMTomzrHoDK4LN0aG/ L4rzT9SmAWVT0COx1SxZ5W3oE7S+59IouVbb2G1fqM65kCLAOn6JnjsFJPlD79pa ULVaFEIt08E20ageC/Y8UIJ02KwJf5CzdnxcqutBf73ozOZ77BsQpWXMck5txTX/ 3x08iA3YdyohdciCUz6cQ== 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=fm3; t=1778514643; x=1778601043; bh=T urZ/0DnJlhYR10Umq+YNpsWpI+NIWkzIrjrbpP5YFk=; b=XUB71MAHsOKKjkSEX h/NInr00n2ywCVPAwQGlpfcZ0OSFuZ2Txc+cVrCQiVd+SKiW1/Jr7XqCIpgaZSuj ulqFQk04vVVzeZo1OmQnAo2CGrerSml/pVAr9VFEvxA3C9Glv6CfjABoS+m2sx7/ WrkHJh8kbpVkDzml7tt4KE9rbI9mzt76Ohh3f1lhXSj5tV6lnrTDE8EMhBHVvxBS 3fB55Vt3qAMNN9GYTvFsHxTd7me/Di81/ROQIpOopviozzb1mGahlQe0VOobWi3W 8r6uFIcXa3z0LB4rVyVjmAk8feAgPLlAPVGc9aMfaglLyttU6zCqoIrVGDeSS0Kp 8p5tw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdduudelfeefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeetuedvheffkeevgfeuheevteevkefggedttdeufeeuheduuddthfef fffhjeefffenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgv sehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopegurhhsohhlrghimhhurhhughgrnhdrvhesghhmrghilhdrtgho mhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrh gvshhqlhdrohhrghdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhprgdruhhspdhr tghpthhtoheprghlvghkshgrnhguvghrsehtihhgvghruggrthgrrdgtohhmpdhrtghpth htohepphgrhigrlhhsudesuhhmsggtrdgvughu X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 11 May 2026 11:50:43 -0400 (EDT) Received: by ida.kurilemu.internal (Postfix, from userid 1000) id 4482CB05EF7; Mon, 11 May 2026 17:50:41 +0200 (CEST) Date: Mon, 11 May 2026 17:50:41 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Tom Lane Cc: solaimurugan vellaipandiyan , Aleksander Alekseev , Payal Singh , pgsql-hackers@lists.postgresql.org Subject: Re: Review - Patch for pg_bsd_indent: improve formatting of multiline comments Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1645542.1778456249@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-May-10, Tom Lane wrote: > Attached are a proposed v8 of the patch, plus two diff files showing > the effects. v7-0001.diff.nocfbot is what the v7 patch does with > today's HEAD (it's the same as before). The v8 patch makes all those > changes and in addition makes the ones shown in v8-0001.diff.nocfbot. > I think those are pretty much all improvements, except that it kind > of messes up Martin Utesch's ASCII-art signatures in the geqo files. > That's because there are some lines starting with '*' and some with > '='. This is another place where I doubt it's worth the trouble to > try to make pgindent handle the case nicely; I propose just manually > adding leading '*'s to those comments before running pgindent. Just passing by, but I think this comment should be handled manually as well, as I doubt we want it to end up this way: > diff --git a/src/backend/utils/adt/tsrank.c b/src/backend/utils/adt/tsrank.c > index d35e5528d0a..6b4bf8eb13b 100644 > --- a/src/backend/utils/adt/tsrank.c > +++ b/src/backend/utils/adt/tsrank.c > @@ -337,12 +337,12 @@ calc_rank_or(const float *w, TSVector t, TSQuery q) > } > } > /* > - limit (sum(1/i^2),i=1,inf) = pi^2/6 > - resj = sum(wi/i^2),i=1,noccurrence, > - wi - should be sorted desc, > - don't sort for now, just choose maximum weight. This should be corrected > - Oleg Bartunov > -*/ > + * limit (sum(1/i^2),i=1,inf) = pi^2/6 > + * resj = sum(wi/i^2),i=1,noccurrence, > + * wi - should be sorted desc, > + * don't sort for now, just choose maximum weight. This should be corrected > + * Oleg Bartunov > + */ > res = res + (wjm + resj - wjm / ((jm + 1) * (jm + 1))) / 1.64493406685; > > entry++; (Not that I understand what this is trying to tell me, mind) -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "¿Cómo puedes confiar en algo que pagas y que no ves, y no confiar en algo que te dan y te lo muestran?" (Germán Poo)