Extract PostgreSQL records with all related data via FK relationships
Postgres partitioning as easy as pie
Postgres table partitioning with a Ruby API built on top of https://github.com/ankane/pgslice