Re: Loading 500m json files to database - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Loading 500m json files to database
Date
Msg-id ea5aa03e-0801-3864-78e1-ed8a56daccb9@aklaver.com
Whole thread Raw
In response to Re: Loading 500m json files to database  (pinker <pinker@onet.eu>)
Responses Re: Loading 500m json files to database
List pgsql-general
On 3/23/20 5:23 PM, pinker wrote:
> it's a cloud and no plpythonu extension avaiable unfortunately

I presume Python itself is available, so would it not be possible to 
create a program that concatenates the files into batches and COPY(s) 
that data into Postgres using the Psycopg2 COPY functions:

https://www.psycopg.org/docs/usage.html#using-copy-to-and-copy-from

> 
> 
> 
> --
> Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Loading 500m json files to database
Next
From: "David G. Johnston"
Date:
Subject: Re: Loading 500m json files to database