only list built-in db types

This commit is contained in:
brianc 2010-10-17 22:25:05 -05:00
parent ac13201891
commit c91a65273a

View File

@ -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);
});