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 1vUAzL-001CMZ-2V for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Dec 2025 21:47:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vUAzJ-009WY8-20 for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Dec 2025 21:47:46 +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 1vUAzJ-009WXz-0w for pgsql-hackers@lists.postgresql.org; Fri, 12 Dec 2025 21:47:46 +0000 Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vUAzG-000QPQ-2u for pgsql-hackers@lists.postgresql.org; Fri, 12 Dec 2025 21:47:45 +0000 Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-7c6cc44ff62so1435550a34.3 for ; Fri, 12 Dec 2025 13:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tigerdata.com; s=google; t=1765576061; x=1766180861; 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=5kAPUW2R1HuYwfqpRgmdRl30iFIHX14n+1uGDSOhlnE=; b=GQ/QYkz3saci2V4uT0J+dUgmEG3KWwbQojHJdfEqBAnBERpqyNmzrHV3EdtlUJ/Edw s+lHkJQBVUFNUTPViSH0sDuPl3ODUoPFnnfrNt9MjRAuYi4+HJwswokHcsYAQiKV3vYb hNRkPQvXwoWpzecfwJcT5n1uUJuKXB+xO0sgdgz8zvrjB+CcI/32vbsjRIJHTdQRQg1M CxPd2V9yv94FE5P1zw2t8y163QPYxlNndwZrQXa7CvPXeP6SNI5zAvVFxzB96mNHUGC/ 66pEWUM3lgiWbtJ6SNMiQpzyDQitNzW/3mCdOgqcoQl/qKqvylLdFcC5qtrZcpPSe4Il xHPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765576061; x=1766180861; 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=5kAPUW2R1HuYwfqpRgmdRl30iFIHX14n+1uGDSOhlnE=; b=L/P3N2sFuU3YWoX3l9nphDWRvaslDQ/0YmdIuiyEqiuCcJMtrMz74aFIp6B7vVpHnQ 5/ZvvOmTsRiWIl7Uf8c/IsbPEXisbXrhyT1G8mvWk30zc2h8XJHUVWpmJUzIrpbGCKMI Wdm8RS4ec3FoZSpHOe0SXxZ/YUUuRRyUDOQjW1uB+KKqwaXVtg1XLOLZmpxrPSvXRWxy QRsXcyKHVJiTV2DhuAgczK82IVRj/bWy3OFan6hBBX1VxbNeWH6PqzwTnSio6WgS5BN7 szvBisY+6TqRJevx39NKQgVvJedxRq6vz9dAmEiUzx/DRSWyCro8SsKJEOJc6dGNWuKJ EoNA== X-Gm-Message-State: AOJu0YxBHKjMX9UNRQ+oeWPA1ISINDDR2/9bxb/Tj9WUeA1QVoXH5bnS /J5xD7NFy8b1GOkddNdY7G/snxHbkghQvIiP8DWxvGbUFB4JO1IWqWbWRouvZX0npBRyc4vXrbC FJXad3eEV4F5F6kpfci9kk66meFZGzF0VfoWKC230be9a2dIR5AShcnBdKg== X-Gm-Gg: AY/fxX6wHXsEzdPvYjJYeNlmCI0x1I9AkOTDdk7ooyjMWTKAcSAZ8VxUu90nv3NQap7 7GrzoMU9QGQ7iZaNhueoaTgMToPGnWDHC7I3mAr5QbnaSCLfELEUEgqvR5EqamPCvASjodzy8+t brPCravitubT9rCuIEyzppsdzrQsdZfGSBLGDxbf+fypiOJyEHniLK3TRr13er6BfDjnpKh3ag9 rZ5SnFcqlkcpAm0o/t6vBYP89/QCdwIaszZ28loYhr1dfgKE5b6IopFUvFi03uFSGn66cES X-Google-Smtp-Source: AGHT+IGIi7JGyRhLfVbiVR3EoFRIMFK2bxYcYbAhKBkvR+98xeZLIJfzxeR5shdRDvfbpzkmBziVa25v/h7qGzzFn7E= X-Received: by 2002:a05:6830:2646:b0:7c7:586c:846c with SMTP id 46e09a7af769-7cae835da8amr2336513a34.19.1765576060962; Fri, 12 Dec 2025 13:47:40 -0800 (PST) MIME-Version: 1.0 References: <202512121547.dwkzxcs56227@alvherre.pgsql> <1000974.1765556221@sss.pgh.pa.us> <1029569.1765564643@sss.pgh.pa.us> In-Reply-To: <1029569.1765564643@sss.pgh.pa.us> From: Aleksander Alekseev Date: Sat, 13 Dec 2025 00:47:30 +0300 X-Gm-Features: AQt7F2pCMq0wi8QNMA9exXUyiT3y7aagoVVESNARrOW8RBX6kL0KS-Deu2rs34s Message-ID: Subject: Re: [PATCH] pg_bsd_indent: improve formatting of multiline comments To: PostgreSQL Hackers Cc: Tom Lane , Nathan Bossart , =?UTF-8?Q?=C3=81lvaro_Herrera?= , 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, > It's strange to see this thread go on about messing with the Perl script > because we're too afraid of pg_bsd_indent. Maybe we should take > ownership of that code -- improve its own indentation to our > conventions, add comments, rename unclear variables, and so on until we > have something we can work with, and fix these weird bugs and > idiosincratic behaviors we don't like. I just found out this code dates > back from 1976. > With or without that nice-to-have, it'd be a lot of work with > not all that much payoff, so I'm finding it hard to recommend > that somebody go after this. But maybe someone will find it > irresistible to scratch that itch. I was thinking just recently that rewriting pgindent in Python might be a good idea for future refactoring, but probably only if and after we merge PyTest patchset [1]. (Which strangely enough is missing on the nearest open commitfest.) [1]: https://www.postgresql.org/message-id/flat/CAOYmi%2BkThkM9Z87u%3DR_Wi7fCor2i%2BUZKAyq0UCyprzCwTQvqgA%40mail.gmail.com -- Best regards, Aleksander Alekseev