(PDB-3695) speed up package gc
(PDB-3695) speed up package gc

Delete where not in is a bad query in postgres. See discussion on SO for
alternatives:
https://stackoverflow.com/questions/15959061/delete-records-which-do-not-have-a-match-in-another-table

puppetlabs/puppetdb,puppetlabs/puppetdb,puppetlabs/puppetdb,puppetlabs/puppetdb,rbrw/puppetdb,rbrw/puppetdb,rbrw/puppetdb,puppetlabs/puppetdb,rbrw/puppetdb,rbrw/puppetdb