diff --git a/README.md b/README.md index 4bff7fa6..9886fdeb 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ pg.connect(conString, function(err, client) { client.query("SELECT NOW() as when", function(err, result) { console.log("Row count: %d",result.rows.length); // 1 console.log("Current year: %d", result.rows[0].when.getFullYear()); + pg.end(); //terminate the client pool, disconnecting all clients }); }); ```