Skip to content


Subversion checkout URL

You can clone with
Download ZIP


constraint issues #6

merged 1 commit into from

2 participants


This fix here is just an update to the sql script for postgresql to pull in the table names with primary keys. This doesn't address the issue for composite primary keys though. It seems either the recommendation would be to not use them, which seems less than ideal, or to change the way these arguments are composed and parsed.

@robconery robconery merged commit d0243cd into robconery:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 2, 2012
  1. @bteller

    added primary key exclusion

    bteller authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/postgres.js
1  lib/postgres.js
@@ -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 \
Something went wrong with that request. Please try again.