formatting
This commit is contained in:
parent
68d00a88d1
commit
ad5a178873
10
srce.pgsql
10
srce.pgsql
@ -49,6 +49,8 @@ declare _t text;
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
|
|
||||||
|
----------------------------------------------------build the column list of the temp table----------------------------------------------------------------
|
||||||
|
|
||||||
SELECT
|
SELECT
|
||||||
string_agg(quote_ident(prs.key)||' '||prs.type,',')
|
string_agg(quote_ident(prs.key)||' '||prs.type,',')
|
||||||
INTO
|
INTO
|
||||||
@ -60,9 +62,13 @@ begin
|
|||||||
GROUP BY
|
GROUP BY
|
||||||
srce;
|
srce;
|
||||||
|
|
||||||
raise notice '%', _t;
|
----------------------------------------------------add create table verbage in front of column list--------------------------------------------------------
|
||||||
|
|
||||||
_t := format('CREATE TEMP TABLE csv_i (%s)', _t);
|
_t := format('CREATE TEMP TABLE csv_i (%s)', _t);
|
||||||
raise notice '%', _t;
|
--raise notice '%', _t;
|
||||||
|
|
||||||
|
|
||||||
|
----------------------------------------------------build the table-----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
DROP TABLE IF EXISTS csv_i;
|
DROP TABLE IF EXISTS csv_i;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user