Detect columns from PG table keys only in current schema, do not mix these with columns from an equally named table in a different schema. Closes #842

This commit is contained in:
Ansgar Becker
2020-01-21 19:13:12 +01:00
parent 638f093105
commit 6f3911b3a3

View File

@ -4853,6 +4853,7 @@ begin
' FROM pg_class'+
' JOIN pg_index i ON (pg_class.oid = i.indexrelid)'+
' JOIN ndx_list ON (pg_class.oid = ndx_list.indexrelid)'+
' WHERE pg_table_is_visible(pg_class.oid)'+
' )'+
'SELECT ndx_cols.relname AS CONSTRAINT_NAME, ndx_cols.CONSTRAINT_TYPE, a.attname AS COLUMN_NAME '+
'FROM pg_attribute a '+