True ETL Tools
If you need more than just to copy data from Gmail to Heroku Postgres, you may use Skyvia's powerful ETL functionality for Gmail and Heroku Postgres integration. Skyvia's Import tool will correctly extract Gmail data, transform it, and load to Heroku Postgres when Heroku Postgres tables have different structure than Gmail objects. Moreover, Skyvia Import allows loading data in any direction, supporting Reverse ETL scenario.
For more complex cases, you can use Data Flow and Control Flow tools. They are designer-based solutions for creating complex data pipelines, involving not only Gmail and Heroku Postgres connectors, but any number of connectors in one integration. With these tools you can automate data workflows, involving custom logic, complex multistage transformations, combine data from different sources, load them into multiple destinations at once and many more.