pgtap
pgtap copied to clipboard
Split pgtap.sql.in
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
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