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 1vU1Nv-00FbA4-3A for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Dec 2025 11:32:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vU1Nt-007ojh-1V for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Dec 2025 11:32:30 +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 1vU1Nt-007ojY-0R for pgsql-hackers@lists.postgresql.org; Fri, 12 Dec 2025 11:32:29 +0000 Received: from mail-oi1-x22b.google.com ([2607:f8b0:4864:20::22b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vU1Nr-000KkJ-0K for pgsql-hackers@lists.postgresql.org; Fri, 12 Dec 2025 11:32:29 +0000 Received: by mail-oi1-x22b.google.com with SMTP id 5614622812f47-4537407477aso673510b6e.1 for ; Fri, 12 Dec 2025 03:32:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tigerdata.com; s=google; t=1765539144; x=1766143944; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YzpMJt4PMXjpqFVCqNEZ2yZJfStzipUa4Jii4LAwnlQ=; b=MIiPiIQG21feRu9nO+v5jRoUL7sSsf2T/Xb0qDRd/H3Rcdikc63xMpXiaBiqQwuq96 YNUXcGYw5lTQJpvCQlLw6MA0hVqIIihh4mwvvUee2bv3hpVZEY9FsP+VfbbbITuFYF4e TjC5JzS3ncykffNIizk41LHipb9atc7dW1fj7e7cFJXq1bMl5/0GGFPet95MDoXUL+Ts dozGTdovwlLt7dyg6FbNDtlKP6tStPLH+xqPLjE54XBUQGU/K/f9lGB15m78NzBocB8p L2Dk4Us8K4LWRoyrK10p/NHSkpwRg7ciZa+y71VzqT8BLr7Xrsr49ADdT9L0kh9lRUzo tGyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765539144; x=1766143944; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YzpMJt4PMXjpqFVCqNEZ2yZJfStzipUa4Jii4LAwnlQ=; b=uSIYpWQwjd1ppJYd4dHgDHvTo0B1GkPK/EeAONcYzFEDHciDySTnZltPB1LsZEfvqp Bg67bc8nr2Gls3sE1Z0M/ugGK7oJ5OXj8IWUKdQExsnAxbH25MbBCnrBY3YVNU1U1SZg cvjOD0+0h3YKJvH3I5eIHjS+Zr+b+i7IkxaACWUYNkuvP3qZvzbeI9eVhkvj6QqSP34O aqZoLO0tgL6tyiZxpkNg4UgzOKHFYWE50PmGQDjlCTRthsYeTYZPo401GPjg9z38Abop n2ZGcbZC+JW4y3XXnMmuIERnkFIOsyDl5ft5IhpPSBTQOzTnAGzhUsTJ42m6wUnV0qy5 oKRw== X-Gm-Message-State: AOJu0YxT7Qe5+w5AiLZqRcp6jn7GCY4/0BaxthGGh7n9aKUK3bQhq3dB cOMEW7b51M1EHQ0WG8MZBrKYvNwbcwu1G4siAEsS+3A05Ez4TSb5nULMrn3yB2kbw5b4opKhhmE Xc4NiQT2EBOhreYR/o8Ds0pJe3gWksBegfa/CEvVS2KAnz+CEkDZzmhTIVg== X-Gm-Gg: AY/fxX4HyI3/Zhz1lupbBk4p6NYOVvxmhGUjlIkPhrOUj34PQ7XOv9HYwSW+px4OU+Q ss29r7IyEJPyOCuUAKknzv5Fn1BHFUhwcQnwFdlxFaR05qty9XsCVRzf/OYSjCB241gfDqkuFth /zzQ9YV7pQ6morIks3hmb6bFwkcIYYSZ4w6vQCoPdoVluIWJD3SbO6L0FbtMttH0HH15/OtJxn4 VBOd5Av5qbnS0ZovIlzQ76zCAXm2mutXlAkrm9PKRyN/FK3hQTHkftZv/lyOwktDQy4MDDK X-Google-Smtp-Source: AGHT+IF3YYrGNhjPJhdmfbSi7l18LicktBGOrkLkB5v/1QlCoOhaNM8LOD9LhOIC97db0/8fyDdCUqI/Z0xUtaw8Xyo= X-Received: by 2002:a05:6808:d4f:b0:450:1eaf:ee2a with SMTP id 5614622812f47-455ac9af8f8mr619245b6e.54.1765539144527; Fri, 12 Dec 2025 03:32:24 -0800 (PST) MIME-Version: 1.0 References: <9AD706B0-B73A-4DCC-9A71-F924D8B74F4B@gmail.com> In-Reply-To: From: Aleksander Alekseev Date: Fri, 12 Dec 2025 14:32:13 +0300 X-Gm-Features: AQt7F2rDaVjmUTupXP6d7UrCFdzyLFc3Kx4gG9Azye0LcpygymOQV9LW1-daWR4 Message-ID: Subject: Re: [PATCH] pg_bsd_indent: improve formatting of multiline comments To: PostgreSQL Hackers Cc: Nathan Bossart , Chao Li , Arseniy Mukhin , Bruce Momjian , Michael Paquier Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Nathan, > [...] > I think we should also figure out what we want to do for things like this: > > ****************************************************************************** > - This file contains routines that can be bound to a Postgres backend and > - called by the backend in the process of processing queries. The calling > - format for these routines is dictated by Postgres architecture. > + * This file contains routines that can be bound to a Postgres backend and > + * called by the backend in the process of processing queries. The calling > + * format for these routines is dictated by Postgres architecture. > ******************************************************************************/ > > Could we modify the patch to leave these kinds of comments alone? I see 3 files that have this comment: - src/tutorial/complex.c - contrib/seg/seg.c - contrib/cube/cube.c Note that cube.c is not affected by the new version of pgindent, because the comment starts with `/****`. Such comments are kept as is. seg.c and cube.c use a mixed format. The comments start with `/*` followed by ` *` lines but several lines below don't have ` *` in the beginning. I don't instantly see a way to process this situation in pgindent. We can either let it modify these comments, or alternatively change the first lines of the comments from `/*` to `/**`. -- Best regards, Aleksander Alekseev