pgtap icon indicating copy to clipboard operation
pgtap copied to clipboard

Split pgtap.sql.in

Open rodo opened this issue 7 years ago • 1 comments

Will you be agree to split the huge pgtap.sql.in in some smaller parts ? It could be done with few impact,

  • split the files in some parts
  • add a Makefile target to build the file pgtap.sql.in

It will help a lot to maintain it over time and had new functionnalities

rodo avatar Jun 22 '18 12:06 rodo

IMHO, it'd be better to give each function it's own file (based on name, not name+args). That means an upgrade script would be essentially a bunch of \i's, and could probably be generated dynamically based on a git diff.

I got so far as cobbling together a script to split things out: https://github.com/decibel/pgtap/blob/split_funcs/funcfiles

decibel avatar Jun 23 '18 20:06 decibel