pg-promise self signed certificate error in Postgres
To fix this issue you have to use the package with the following recommendations
Aug 20, 2020
If you are using Node.js with some of these packages: pg-promise or pg probably you are facing this issue.
Improve pg-promise stack traces
Aug 27, 2020
When you execute a query with error, we get a pg-promise internal module-specific stack trace.