Hi friends…
I’m sorta new to node and node-postgres (to all things programming if i’m being entirely honest) and I noticed you can use pool.query and pool.connect(which returns a promise of a client) when using a connection pool. I would like to know how pool.query works as opposed to Client.query from a single client and Client.query from a pool of connected clients. Also feel free to shed more light on how connection pooling and querying works as there is not enough documentation for beginners on this topic.
Thanks