formatting

This commit is contained in:
Paul Trowbridge 2017-10-11 00:29:38 -04:00
parent 68d00a88d1
commit ad5a178873

View File

@ -49,6 +49,8 @@ declare _t text;
begin
----------------------------------------------------build the column list of the temp table----------------------------------------------------------------
SELECT
string_agg(quote_ident(prs.key)||' '||prs.type,',')
INTO
@ -60,9 +62,13 @@ begin
GROUP BY
srce;
raise notice '%', _t;
----------------------------------------------------add create table verbage in front of column list--------------------------------------------------------
_t := format('CREATE TEMP TABLE csv_i (%s)', _t);
raise notice '%', _t;
--raise notice '%', _t;
----------------------------------------------------build the table-----------------------------------------------------------------------------------------
DROP TABLE IF EXISTS csv_i;