diff --git a/pg.js b/pg.js
index <HASH>..<HASH> 100644
--- a/pg.js
+++ b/pg.js
@@ -42,7 +42,7 @@ function connectionstring(conn) {
 }
 
 function createpool(options) {
-	var key = options.host + '_' + options.database;
+	var key = options.host + '_' + options.database + '_' + (options.port || '');
 	return pools[key] ? pools[key] : (pools[key] = new Database.Pool(connectionstring(options)));
 }
Add `port` to `key` for PG pooling.