pgindent wishlist item - Mailing list pgsql-hackers

From Andrew Dunstan
Subject pgindent wishlist item
Date
Msg-id 52EBDD90.1050202@dunslane.net
Whole thread Raw
Responses Re: pgindent wishlist item  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: pgindent wishlist item  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
While Bruce is working on pgindent, let me register a small wishlist 
item. It would be quite useful to be able to supply extra typedefs on 
the command line to supplement a typedefs file downloaded from the 
buildfarm or constructed however. A concrete example: in the code I have 
been recently working on, there are typedefs for Jsonb and JsonbValue. 
If I run pgindent as normal on the new code these items are not treated 
properly. What I had to do was take a special copy of the typedefs list 
and add those two items. If we could pass a list of extra typedefs to 
supplement the typedefs file that would be very useful. Then I could do 
something like:
   pgindent --typedef Jsonb --typedef JsonbValue   src/backend/utils/adt/jsonfuncs.c

without having to mangle a typedefs file.

This would make using pgindent nicer to use during development, since 
any significant development is just about guaranteed to have some new 
typedefs the buildfarm can't have.

cheers

andrew



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: install libpq.dll in bin directory on Windows / Cygwin
Next
From: Vik Fearing
Date:
Subject: Re: [GENERAL] Insert result does not match record count