Re: run pgindent on a regular basis / scripted manner - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: run pgindent on a regular basis / scripted manner
Date
Msg-id 645add52-2ed3-970d-c9e4-a1294669fb57@eisentraut.org
Whole thread Raw
In response to Re: run pgindent on a regular basis / scripted manner  (Andres Freund <andres@anarazel.de>)
Responses Re: run pgindent on a regular basis / scripted manner
List pgsql-hackers
On 12.08.23 23:14, Andres Freund wrote:
> It's a somewhat annoying task though, find all the typedefs, add them to the
> right place in the file (we have an out of order entry right now). I think a
> script that*adds*  (but doesn't remove) local typedefs would make this less
> painful.

I was puzzled once that there does not appear to be such a script 
available.  Whatever the buildfarm does (before it merges it all 
together) should be available locally.  Then the workflow could be

type type type
compile
update typedefs
pgindent
commit



pgsql-hackers by date:

Previous
From: Chapman Flack
Date:
Subject: Re: Extract numeric filed in JSONB more effectively
Next
From: Peter Eisentraut
Date:
Subject: Re: run pgindent on a regular basis / scripted manner