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 1vawek-00G5jv-1V for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Dec 2025 13:54:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vawej-006SC0-1F for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Dec 2025 13:54: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 1vawej-006SBs-0G for pgsql-hackers@lists.postgresql.org; Wed, 31 Dec 2025 13:54:29 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vaweh-003maT-0S for pgsql-hackers@lists.postgresql.org; Wed, 31 Dec 2025 13:54:29 +0000 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-42fbc305882so5133151f8f.0 for ; Wed, 31 Dec 2025 05:54:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767189264; x=1767794064; 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=OHp8CoSOvAHu8FXmON++FJ6ov2t7nPU0imUnMkgnYWM=; b=cSXvtP3DMnAMFqwbHAOMVwAewEQKPRDzHZh8NFqFLBXi8Ld2JVydISwscVHmYlQ7cc 5Lrx5dX/gB1ZEhLrq57yFSbuqlFcc6z5czw9IBJaBT579Uzz6KFxlW67fKZhSRnu3dO+ 7bcOx2ETjcxFjB9w4U399g53P1o5BLl5XLvWj2NZP+770UpI5/ToGYFi5Lj7u5zbM+gI QxEOXSRN6PJhPqDkgZQHAzJTo2DHgzLt9Gmj/M7zqEwhj8CKlXCkpq+HO7tyf3FvM2SY nbRff+Uq9lEPMsRJHEXSgzxqqediF8TWI1cdZ076AWk+Nj0DZ6aWw0Y00MRsEupZCEPE z+kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767189264; x=1767794064; h=content-transfer-encoding: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=OHp8CoSOvAHu8FXmON++FJ6ov2t7nPU0imUnMkgnYWM=; b=hZZsiBceMT1zD4q39d9sAys+Js14rdygccqU3TzXnAJ7sTeXwuwwSFIcX+pkFMHGft 4ujNULPuPheBHjEeK4iFG5c0V4j3v4xIsxyl+45cqHK8HYxuJw/isU0mWo6ejaB2kb2G BLlm5UMuq5fgh6AZRUnfExUf+NNyR8IxQOAPVVOe4nbfO+7G55yAkKVIeKjsCIMErQL5 4MXFU7+98OTAkxIjBrD0QLkFjVTVCU723ta2rkSkNd90cYH6JuNpTD27DCJ4qYF3Qsob 44Qo2k4fQIEwnqm+EHc0dm49mOHyPCRB9ntTaT9Hu5vWlVlbB2iiL9JrGpol54RZUwB2 Hqiw== X-Gm-Message-State: AOJu0YwldpwYm6ZqIU6sqI4Ew/b/XRHAdtEYh8bvXiohCqnQNfortXpz EQsVDUZrP5KCqCtcTnUL0UyTiQB1f+NsZ127UOawGIEM5fY9+9LRZEzPxOx8ni4V1xOzQsBqN+m QCoRnZC+mXp1fscLOEfbRZOXEOJnz0DjYwQ== X-Gm-Gg: AY/fxX7RGJVTmG2eUSNBuwSFFRD/vmV//tY7p4lB6agLMhWoPssNDXO6kASydKjYXtJ 6PBvTa0uJdhBQ9jkAtj/BzVEU/MVPnkRfTs1EfY33ayCLd0Gx/NO+Oo3KUw+QeeRu3Nq1pf+ua0 ewJ5rjL2j1IRP/sXanTOsgeIJeUNU0azALNmse2gOPPP4VuVlk3ZVkz0G26L6UxIopKGPuwFNjA XKis9Yn9b2PHXnzUPBaxg7IXEhV4GKi4for8IIqW229NuUUlkzx30hjXY183FBMUcsz6ySR X-Google-Smtp-Source: AGHT+IFl5Rc81chbPyP/xNaQX298WKRFU21E1ClrF2QQJ94VU7rlhWpP2GXoPfT6tfIeggBHM2b0f9/Dn+XeMiydQOU= X-Received: by 2002:a05:6000:178d:b0:431:384:15d2 with SMTP id ffacd0b85a97d-4324e506bcemr50943198f8f.53.1767189264226; Wed, 31 Dec 2025 05:54:24 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ashutosh Bapat Date: Wed, 31 Dec 2025 19:24:12 +0530 X-Gm-Features: AQt7F2p0qa-ce8jxZn2W_7DjWOGyCOX5OMTENmCqv3jfgMhPUHaRJgiFVbR3fVo Message-ID: Subject: Re: Add "format" target to make and ninja to run pgindent and pgperltidy To: Jelte Fennema-Nio Cc: PostgreSQL Hackers , Daniel Gustafsson 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 Wed, Dec 31, 2025 at 5:06=E2=80=AFPM Jelte Fennema-Nio wrote: > > This tries to make running formatting a lot easier for committers, but > primarily for new contributors. You can not format the files by simply > running one of the folowing: > > make format > ninja -C build format > I generally like the idea. Since perltidy is not enforced regularly (like pgindent), running it usually ends up modifying files which are not part of the patch. So I avoid it if not necessary. Do you propose to make it optional? --=20 Best Wishes, Ashutosh Bapat