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.94.2) (envelope-from ) id 1uT3MM-00Giim-Tm for pgsql-hackers@arkaria.postgresql.org; Sat, 21 Jun 2025 18:54:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uT3MK-008hDj-Vh for pgsql-hackers@arkaria.postgresql.org; Sat, 21 Jun 2025 18:54: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.94.2) (envelope-from ) id 1uT3MK-008hDO-M8 for pgsql-hackers@lists.postgresql.org; Sat, 21 Jun 2025 18:54:37 +0000 Received: from mail-yw1-x1131.google.com ([2607:f8b0:4864:20::1131]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uT3MJ-003M99-0Q for pgsql-hackers@lists.postgresql.org; Sat, 21 Jun 2025 18:54:36 +0000 Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-70e23e9aeefso22981927b3.2 for ; Sat, 21 Jun 2025 11:54:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750532073; x=1751136873; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0eibYcASi7406EmiRZL9AlSdx/GCJh2k2sqtDUWKQBo=; b=cIY7ROv3gqOKGWgMyov+QhjRAwu4QLT80XGT1qXbYbd5oCOGvQ2ZdDdDubiOVe+Aj4 BXTArw9X2ZuMHK4u4ijF+++9Zsm6R+E+XAAkeXsNVhBUdaprZlzsNGpEGCIsSExg/7gR Ly0uZeOt48ow9oCvXLgXclMKzwl5bI0H4+g5xPwC6V0Exc3aS9bNTpNeiRuHegINkjrI /9Z1imIppP8DPWPNhoBcUj+5aPi/+zj0sa7ne3GPwI6IjRQbX1mN87bMJRdmbNH4IkDu 99kQZtU19kYbLyv+LXP5UyoZh9PBKWnK0PQlqbvlWoftJVuPEqKlpWcofIrVtk/AZSNO Oa9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750532073; x=1751136873; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0eibYcASi7406EmiRZL9AlSdx/GCJh2k2sqtDUWKQBo=; b=aKmMxuaN26WHUp/qRiNQ5bYzTd9+/HHmmv+OUWekYDC7JRU8N2oVTcBUf6Vea/63q4 GWZ8F8+STXyp3QAFKBvtFgspVksnQguFHZ8DlMEBlfxgg5YimNGAn5pchNLGRtTJE+kP aewyNU3I+1vf2lt4rNZkjUePUsA5kBpoCxU2gyccbh1mt4VwxmNLBpy1g4/uNsX91y5L pgTH611QP8EH7hdTaWi8LM3Ev+SNhpv6td6cJ8UqavMsU7EPxzx5j0VPhFSMhpgquH7j O5k/6ZJ5PdlgJfmntPTQz+AR/eWlaW3eqjijD+0sljMQJCp4+fxCUvdhA3q+s3kUpZy2 pyPg== X-Gm-Message-State: AOJu0YwgKrm23vM3YrVxAlfPHwUpTIGQcsiTeBKW+LB+R8zlmUWB4YDe SYj0T/GtxY9C8f29XqADdwUknBpJIy6gwXiuildj0CVukFGjCQnP08KBwd4+LFj8fMJPSretzLB Yp6C/Ywu8h/HqJInlAT1qY2uokxAcm0E= X-Gm-Gg: ASbGncsgeLoNHobc4W+JaWI4pHG066WxNbyp3KWriZhqVzw4sy7HtT72I45ehwEsPIX 6upq8D5qgCMfyKVXlv3NyfJCMsYBcVtAEEuvsCnqq6nEIM+W9NJ0QWs4CvgD1SkPnhZ8ETBJeYw YtkuwX/jTLhSUzGwz3rU4Boqm2vJT5ftls/5r2VfB8QAwR X-Google-Smtp-Source: AGHT+IHwivCvxjX3WBnPZrutbf15XJB1gYFG9QWMCN5yujWSY7S2NdNVDNBmG23RBqis+FukxzZ2HoRE+BAlu4E79kg= X-Received: by 2002:a05:690c:708e:b0:708:cd31:88a9 with SMTP id 00721157ae682-712c67b263dmr110866117b3.37.1750532072721; Sat, 21 Jun 2025 11:54:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arseniy Mukhin Date: Sat, 21 Jun 2025 21:54:21 +0300 X-Gm-Features: AX0GCFuwczwrz6lJ5C-p_Df5OBZdYsVtFMpnHyCIxlBF7C-LZ_YM2C3IK8Qrzjw Message-ID: Subject: Re: [PATCH] pg_bsd_indent: improve formatting of multiline comments To: Aleksander Alekseev Cc: PostgreSQL Hackers , Bruce Momjian , Michael Paquier Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Jun 20, 2025 at 5:01=E2=80=AFPM Aleksander Alekseev wrote: > > Hi, > > > Given the quality of BSD indent code, I have _always_ found it easier t= o > > modify pgindent. ;- > > :D Initially I thought that the problem was simple enough to solve it > in C, but this turned out not to be true. > > > It's going to be simpler to modify pgindent then. PFA the updated patch= . > > I noticed a mistake in v2. Here is the corrected patch. Changes > comparing to the previous version: > Thanks! Now it affects 4 times more files (380). What I noticed: 1) Most of the comments are bordered comments like this: -/* -----------------------------------------------------------------------= --------- +/* + * -----------------------------------------------------------------------= --------- * Public IO related functions operating on IO Handles * -----------------------------------------------------------------------= --------- */ Do we want to skip such comments? I have also seen comments with '=3D=3D=3D=3D' border. 2) Some comments like this: before: /* Author: Linus Tolke (actually most if the code is "borrowed" from the distribution and just slightly modified) */ after: /* * Author: Linus Tolke (actually most if the code is "borrowed" from the distribution and just slightly modified) */ I guess closing */ on the separate line is the trigger? If I'm not wrong there are only 3 such comments, maybe it is easier to fix them by hand?) 3) It seems all geqo related file contains such comment: -/* contributed by: +/* + * contributed by: =3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D= *=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D*=3D * Martin Utesch * Institute of Automatic Control * =3D Best regards, Arseniy Mukhin