MB-49
i've finished writing the stored procedure and started writing its pgtap
tests. the pgtap tests are almost done.
it still needs testing to make sure everything is working correctly.