Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h20ol-0002qL-OO for pgsql-general@arkaria.postgresql.org; Thu, 07 Mar 2019 21:44:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h20oj-0007mm-Mf for pgsql-general@arkaria.postgresql.org; Thu, 07 Mar 2019 21:44:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h20oj-0007kX-EA for pgsql-general@lists.postgresql.org; Thu, 07 Mar 2019 21:44:41 +0000 Received: from [66.111.4.26] (helo=out2-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h20of-0002sG-7M for pgsql-general@postgresql.org; Thu, 07 Mar 2019 21:44:40 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4DD9D21F05; Thu, 7 Mar 2019 16:44:15 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 07 Mar 2019 16:44:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=m MprBCtpQLlqsQydbN70XqWjmowl3xyB6KxzaCJE+pY=; b=LFiYIixq5OJdgwFFy FXaQrZJAHVKecknFsYk691rvtKwBiU5vgynvV4dnjqk6JLME2QGZ8aaoiB4UrHE0 kPW2j3oEy9CR9LuNAKEHD+vdL1I3N3Sz+el9u/jDBUg2gEfW6b0w6rx0ZUmejWQJ Y22rU3NiT5wDmRp9sx0cu3bpxQ3b2c6Aq0MciiTmd+olbvCsnNFXJSsyc5uOhvP3 Ac5Igu/KZF5Ge5f4EW+IjN4uWbvzaQ8s23GcCMfXgKij6hPFV9ZowQlBGgxruV/y qFUobQEX8T54vOZkrJUWQx7nSvOKlZtYrEayZb1Xt9NGhVbfx5m3KeeSfqs7jTu2 7aOvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=mMprBCtpQLlqsQydbN70XqWjmowl3xyB6KxzaCJE+ pY=; b=ar21J/5roaq4tjYmVOfa56ULI+SJbpcZIrhPUwMxYneAvHh5t2DXpXGmM gQwuW6TuoDey4eAzLtX56gvDi8dKyyqUC4YOo3c9k5J79FbW/lXyTNPy1XDSCxsr 3OSoaFILShuV3+o0DSQu6ew3oKjxGZmRKEJbUFPWSTQgM1unWbWQhqSOEbxmSK+o lqylMgMcok5E4wOrcMl3O8qLmBsNOp6Onkt0h+9UywvPxg3BifYI+jGJ8lfjduJl 4jo8voicElStmTv5Lo0WKeeGqQgfvLhIxS1dNG9mpP8hkBjIpnoYunhmek6ZdM4x XxJAM5GsAbgkL3KdMW7Ihl/NkqELw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrfeekgdduheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinheptghithhushgurghtrgdrtghomhdpphhoshhtghhrvghsqhhl rdhorhhgnecukfhppeejfedrvdefledruddujedrvdefkeenucfrrghrrghmpehmrghilh hfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhu shhtvghrufhiiigvpedt X-ME-Proxy: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id 4C92A10341; Thu, 7 Mar 2019 16:44:14 -0500 (EST) Subject: Re: Tools to migrate data from Json files to PostgreSQL DB. To: github kran , pgsql-general References: From: Adrian Klaver Message-ID: <617b1a86-df5d-369d-5565-0ca68b2aaac3@aklaver.com> Date: Thu, 7 Mar 2019 13:44:12 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.26 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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