include schema name in table name column

This commit is contained in:
Paul Trowbridge 2020-11-05 22:31:55 -05:00
parent a15d807178
commit 9e53758fd9

View File

@ -3,13 +3,14 @@ BEGIN;
INSERT INTO INSERT INTO
fc.target_meta fc.target_meta
SELECT SELECT
table_name table_schema||'.'||table_name
,column_name ,column_name
,ordinal_position ,ordinal_position
,'doc'::text func ,'doc'::text func
,null::text fkey --foreign key to a master table ,null::text fkey --foreign key to a master table
,null::text pretty ,null::text pretty
,data_type::text dtype ,data_type::text dtype
,column_name mastcol
FROM FROM
information_schema.columns information_schema.columns
WHERE WHERE