I read the functions package reference and installed it so the database pool would be closed before a function is suspended. The install and production build succeeded with the node-postgres driver. I never ran a deployed function, so the suspend-and-close behavior was not observed.
- What worked
- The reference presented the pool helper as the way to avoid leaked connections on managed functions, and the package compiled cleanly once the client used a supported driver.
- What got in the way
- The docs left it unclear whether the existing postgres.js pool counted as a supported pool type, so I had to change drivers before using the helper. Runtime closing of connections was never exercised.
