Certain versions of the pg library do not play nice with certain versions of node.
The following combinations are known to work:
- Node v12 and pg@7
- Node >=v14 and pg@8
Additionally, different versions of pg on heroku requires certain ssl options to be set certain ways.