From c91a65273ae5cfe31cf8c534512a9480953f94e5 Mon Sep 17 00:00:00 2001 From: brianc Date: Sun, 17 Oct 2010 22:25:05 -0500 Subject: [PATCH] only list built-in db types --- script/list-db-types.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/list-db-types.js b/script/list-db-types.js index 295b412..1a39586 100644 --- a/script/list-db-types.js +++ b/script/list-db-types.js @@ -4,7 +4,7 @@ var client = new Client({ database: 'postgres' }); client.connect(); -var query = client.query('select oid, typname, typlen from pg_type order by typname'); +var query = client.query('select oid, typname, typlen from pg_type where typtype = \'b\' order by typname'); query.on('row', function(row) { console.log(row); });