pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: github kran <githubkran@gmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Tools to migrate data from Json files to PostgreSQL DB.
Date: Thu, 7 Mar 2019 13:44:12 -0800
Message-ID: <617b1a86-df5d-369d-5565-0ca68b2aaac3@aklaver.com> (raw)
In-Reply-To: <CACaZr5Th2yEt7DBQH_CMyn5vOE-f1sNaAPCNag-JoXgptH6i-w@mail.gmail.com>
References: <CACaZr5Th2yEt7DBQH_CMyn5vOE-f1sNaAPCNag-JoXgptH6i-w@mail.gmail.com>

On 3/7/19 1:21 PM, github kran wrote:
> Hello PostgreSQL Team,
> 
> Are there are any tools to migrate data present in the json files ? to 
> the postgreSQL database.
> We have data in flat files about 2 billion records across multiple files.
> 
> 1) What is the easiest way I can transfer this data to relational 
> database ?.
> 2) Any tools I can use ?. and any better ways do it ?

An older blog:

https://www.citusdata.com/blog/2013/05/30/run-sql-on-json-files-without-any-data-loads/

Not sure if all the parts still work or not.

Otherwise I could see using the JSON types and JSON functions built into 
Postgres:

https://www.postgresql.org/docs/10/datatype-json.html

https://www.postgresql.org/docs/10/functions-json.html



> 
> Appreciate your help.
> 
> 
> Thanks
> Kran,


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (5+ messages)  latest in thread

Message-ID: <617b1a86-df5d-369d-5565-0ca68b2aaac3@aklaver.com>
Permalink:  ../617b1a86-df5d-369d-5565-0ca68b2aaac3@aklaver.com/
Also on:    postgresql.org/message-id/617b1a86-df5d-369d-5565-0ca68b2aaac3@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, githubkran@gmail.com
  Subject: Re: Tools to migrate data from Json files to PostgreSQL DB.
  In-Reply-To: <617b1a86-df5d-369d-5565-0ca68b2aaac3@aklaver.com>
  References: <CACaZr5Th2yEt7DBQH_CMyn5vOE-f1sNaAPCNag-JoXgptH6i-w@mail.gmail.com> <617b1a86-df5d-369d-5565-0ca68b2aaac3@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox