PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.
To close the database connection, simply call the close() method to the Connection:
db.close();
Read the upstream documentation. For corrections, first check the current manual.