From 76094b5fadb9044068fcae50e8ac01a930d2e14b Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Fri, 13 Oct 2017 02:52:58 -0400 Subject: [PATCH 1/3] change extension to sql --- ubm_data.backup => ubm_data.sql | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename ubm_data.backup => ubm_data.sql (100%) diff --git a/ubm_data.backup b/ubm_data.sql similarity index 100% rename from ubm_data.backup rename to ubm_data.sql From 78ebfd5e8f4db447ae6ccb2ef0c17c4921a285c6 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Fri, 13 Oct 2017 02:53:21 -0400 Subject: [PATCH 2/3] change out to sql extension --- ubm_backup.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubm_backup.cmd b/ubm_backup.cmd index 710b1e4..3d120ca 100644 --- a/ubm_backup.cmd +++ b/ubm_backup.cmd @@ -1,2 +1,2 @@ "C:\PostgreSQL\pg10\bin\pg_dump" -h localhost -p 5433 -U ptrowbridge -d ubm -s -O -F p -f "C:\users\ptrowbridge\Documents\tps_etl\ubm_schema.sql" -"C:\PostgreSQL\pg10\bin\pg_dump" -h localhost -p 5433 -U ptrowbridge -d ubm --column-inserts -a -O -F p -f "C:\users\ptrowbridge\Documents\tps_etl\ubm_data.backup" \ No newline at end of file +"C:\PostgreSQL\pg10\bin\pg_dump" -h localhost -p 5433 -U ptrowbridge -d ubm --column-inserts -a -O -F p -f "C:\users\ptrowbridge\Documents\tps_etl\ubm_data.sql" \ No newline at end of file From e560e496863ccded312f4d404890e79651ec65e0 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Fri, 13 Oct 2017 02:55:28 -0400 Subject: [PATCH 3/3] get rid of commented out sample json --- srce.pgsql | 45 --------------------------------------------- 1 file changed, 45 deletions(-) diff --git a/srce.pgsql b/srce.pgsql index 783428f..beaa58a 100644 --- a/srce.pgsql +++ b/srce.pgsql @@ -1,48 +1,3 @@ -/* -SELECT -jsonb_pretty( -$$ -{ - "name": "GOOGDM", - "type": "json_csv", - "schema": { - "rows": [ - { - "elements": [ - { - "status": "text", - "distance": { - "text": "text", - "value": "numeric" - }, - "duration": { - "text": "text", - "value": "value" - } - } - ] - } - ], - "status": "text", - "origin_addresses": [ - "text" - ], - "destination_addresses": [ - "text" - ] - }, - "unique_constraint": { - "type": "key", - "fields": [ - "{origin_adresses,0}", - "{destination_adresses,0}" - ] - } -} -$$::jsonb -) -*/ - DO $$ declare _t text;