pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Noah Misch <noah@leadboat.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Jelte Fennema <postgres@jeltef.nl>
Cc: Andres Freund <andres@anarazel.de>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Jesse Zhang <sbjesse@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: run pgindent on a regular basis / scripted manner
Date: Sat, 4 Feb 2023 11:38:08 +0900
Message-ID: <Y93FEFBV/0IMGMCv@paquier.xyz> (raw)
In-Reply-To: <CAEZATCWDKJepqWozZyKQx87GvmadSHxnDMBJ9Po4KNVDoNGoyg@mail.gmail.com>
References: <20230123173136.knn77pbuakhvjfgk@awork3.anarazel.de>
	<Y874Fh0q4mkk1s22@momjian.us>
	<CAGECzQTqoGHrePM_pwmhaM+J1XOygYjzFod4sf=PAt7J4A19Mw@mail.gmail.com>
	<2238493.1674572097@sss.pgh.pa.us>
	<Y9ArogF7c+UgPgq9@momjian.us>
	<20230129010603.GA1677550@rfd.leadboat.com>
	<Y9groc0Nyy7SOROy@momjian.us>
	<20230202062838.GA1832088@rfd.leadboat.com>
	<1477791.1675320029@sss.pgh.pa.us>
	<CAEZATCWDKJepqWozZyKQx87GvmadSHxnDMBJ9Po4KNVDoNGoyg@mail.gmail.com>

On Thu, Feb 02, 2023 at 11:34:37AM +0000, Dean Rasheed wrote:
> I didn't reply until now, but I'm solidly in the camp of committers
> who care about keeping the tree properly indented, and I wouldn't have
> any problem with such a check being imposed.

So do I.  pgindent is part of my routine when it comes to all the
patches I merge on HEAD, and having to clean up unrelated diffs in
the files touched after an indentation is always annoying.

FWIW, I just use a script that does pgindent, pgperltidy, pgperlcritic
and `make reformat-dat-files` in src/include/catalog.

> I regularly run pgindent locally, and if I ever commit without
> indenting, it's either intentional, or because I forgot, so the
> reminder would be useful.
> 
> And as someone who runs pgindent regularly, I think this will be a net
> time saver, since I won't have to skip over other unrelated indent
> changes all the time.

+1.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (308+ messages)  latest in thread

Message-ID: <Y93FEFBV/0IMGMCv@paquier.xyz>
Permalink:  ../Y93FEFBV%2F0IMGMCv@paquier.xyz/
Also on:    postgresql.org/message-id/Y93FEFBV/0IMGMCv@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: michael@paquier.xyz, dean.a.rasheed@gmail.com, tgl@sss.pgh.pa.us, noah@leadboat.com, bruce@momjian.us, postgres@jeltef.nl, andres@anarazel.de, pg@bowt.ie, magnus@hagander.net, alvherre@2ndquadrant.com, sfrost@snowman.net, sbjesse@gmail.com
  Subject: Re: run pgindent on a regular basis / scripted manner
  In-Reply-To: <Y93FEFBV/0IMGMCv@paquier.xyz>
  References: <20230123173136.knn77pbuakhvjfgk@awork3.anarazel.de> <Y874Fh0q4mkk1s22@momjian.us> <CAGECzQTqoGHrePM_pwmhaM+J1XOygYjzFod4sf=PAt7J4A19Mw@mail.gmail.com> <2238493.1674572097@sss.pgh.pa.us> <Y9ArogF7c+UgPgq9@momjian.us> <20230129010603.GA1677550@rfd.leadboat.com> <Y9groc0Nyy7SOROy@momjian.us> <20230202062838.GA1832088@rfd.leadboat.com> <1477791.1675320029@sss.pgh.pa.us> <CAEZATCWDKJepqWozZyKQx87GvmadSHxnDMBJ9Po4KNVDoNGoyg@mail.gmail.com> <Y93FEFBV/0IMGMCv@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox