Re: Loading 500m json files to database

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Loading 500m json files to database
Дата
Msg-id ea5aa03e-0801-3864-78e1-ed8a56daccb9@aklaver.com
обсуждение исходный текст
Ответ на Re: Loading 500m json files to database  (pinker <pinker@onet.eu>)
Ответы Re: Loading 500m json files to database
Список 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 по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Loading 500m json files to database
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Loading 500m json files to database