Permalink
Browse files

added primary key exclusion

  • Loading branch information...
1 parent 7ea49ef commit 01b442f22707771dc82ed7edbfe608f4e846a0d6 @bteller bteller committed Dec 2, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/postgres.js
View
@@ -22,6 +22,7 @@ var Postgres = function(connection){
information_schema.table_constraints tc \
where \
cu.constraint_name = tc.constraint_name \
+ and tc.constraint_type = 'PRIMARY KEY' \
and tc.table_name = ist.table_name \
) as pk \
from information_schema.tables ist \

0 comments on commit 01b442f

Please sign in to comment.