Currently, for testing we simply run diff between expected output and the output generated on the instance being tested.
We should move to using pg_regress.
pg_regress is a binary available from postgres server dev packages. It is usually not added to $PATH, but is available under
$(pg_config --pkglibdir)/pgxs/src/test/regress/pg_regress. pg_regress calls diff under the hood, but advantages of pg_regress are:
The advantages of pg_regress are:
Currently, for testing we simply run
diffbetween expected output and the output generated on the instance being tested.We should move to using
pg_regress.pg_regressis a binary available from postgres server dev packages. It is usually not added to$PATH, but is available under$(pg_config --pkglibdir)/pgxs/src/test/regress/pg_regress.pg_regresscallsdiffunder the hood, but advantages ofpg_regressare:The advantages of
pg_regressare:diffnaively)