Is there a convenient way to add historical data to the database?

I used ioBroker in the past and stored sensor and entity data in a postgres db.

What would be the best approach to import this data to Home Assistant?