List name and definition for table constraints

This commit is contained in:
Dan Sosedoff 2018-01-30 22:34:54 -06:00
parent 43fe84de3a
commit 9c0d887a3c

View File

@ -50,7 +50,8 @@ WHERE
TableConstraints = `
SELECT
pg_get_constraintdef(c.oid, true) as condef
conname as name,
pg_get_constraintdef(c.oid, true) as definition
FROM
pg_constraint c
JOIN