On Mon, Nov 20, 2017 at 12:11 PM, Tom Lane <t...@sss.pgh.pa.us> wrote: > This is really about consolidating a whole bunch of ad-hoc stuff. > I don't think pgstat has any particular pride of place here. It > should be one consumer of a common API. > > The stuff related to AuxProcType is in miscadmin.h, so one possibility > is to put the new enum there. But I could see inventing a whole new > header for this, "utils/proctype.h" or so.
I am on board for a new, dedicated, header, miscadmin.h having already a lot of things. So this API could just be located in its own file say in src/backend/utils/misc? -- Michael