I am using a professional tier Heroku Postgres database. The DATABASE_URL changes whenever maintenance is conducted. This fact makes it essentially impossible for us to connect external apps to this database instance since they break at regular intervals whenever maintenance is conducted.
I require a static, unchanging URL or IP address to my Postgres instance so that external applications can have an uninterrupted connection to the database across maintenance windows.
- Is there a recommended way of setting this up? If not I will have to perform a migration to some other service provider because performing an update to all my infrastructure or creating polling mechanisms to get around this problem is not feasible.
- A less important question but why does Heroku Postsgres keep changing the URL? Is it for security? There is nothing in their documentation that explains why this happens.

