From 270eb461237ed0d35c99fc102191b53ede8fa5e0 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 28 Oct 2020 00:03:13 -0400 Subject: [PATCH] initial work on column builder, driven by shell --- runsql.sh | 1 + sql/col_list.sql | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100755 runsql.sh create mode 100644 sql/col_list.sql diff --git a/runsql.sh b/runsql.sh new file mode 100755 index 0000000..4bc0c8b --- /dev/null +++ b/runsql.sh @@ -0,0 +1 @@ +$PGD -f sql/col_list.sql -t -A -o coldump diff --git a/sql/col_list.sql b/sql/col_list.sql new file mode 100644 index 0000000..3e2cd0b --- /dev/null +++ b/sql/col_list.sql @@ -0,0 +1,6 @@ +SELECT + string_agg(format('%I',cname),E'\n,' ORDER BY opos ASC) cols +FROM + fc.target_meta +WHERE + func NOT IN ('version','iter');