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.92) (envelope-from ) id 1jGXmY-0000kq-8U for pgsql-general@arkaria.postgresql.org; Tue, 24 Mar 2020 00:51:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jGXmV-0005PC-VH for pgsql-general@arkaria.postgresql.org; Tue, 24 Mar 2020 00:50:59 +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 1jGXmU-0005P4-Sq for pgsql-general@lists.postgresql.org; Tue, 24 Mar 2020 00:50:59 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jGXmM-0006P4-Pc for pgsql-general@postgresql.org; Tue, 24 Mar 2020 00:50:58 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8E3B65C0211; Mon, 23 Mar 2020 20:50:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 23 Mar 2020 20:50:48 -0400 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=C JPL3uvhZ/hXKuo8RlgPt66oIt5dpGMt2a5T/+J9OEk=; b=KhktXvCr0opF1rTk7 uncCDcASxQnDclk3Ebil5oObal1VAKgplJ5wxpmMaGDkyIqYvj/9cjMau7UwcZ45 w8QeoDUiy41GuHOOy+mst7mGZji2Xk5vnxBvaExvyMmrpogKMKZDVPtqoLrAw4ob KipA/05N8zxdUl2nXEfAxzgFvOMo206KWUeGdv+mVGAmegWmU+hhMqwG2u3h7Ysf snCM3an6jl1S1wCx6PSKE3JltK1Ih1z1ccXcj7/hYwoeNUPFFzDubr7peGdbcmqQ A500xHIwWrICGmJxGmkniYIjYowaAYL/P7Ee6GHOvhRdU4vZqR2Z5N/fO1PMGa5M W2FmA== 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=CJPL3uvhZ/hXKuo8RlgPt66oIt5dpGMt2a5T/+J9O Ek=; b=2bTcB99vPVRBfBSqnQhiGYD3gIwtZrZBDxBy18eJbJJtGrrM3cRE9n17w hAi2Eg0TLc+fqgyPbeXGd2K0pSSWw8R6QxY8GUnnpEur9rBGKMVTZT7aNQHVpf+I qLtaHyRkiH9F71zCya/rlsJX9plJJurSnFQecr5F0SNXiKrferURmZ5i5FQKm0ZQ BbS5aoHIP8IbS7+R1QKvzcVLaAcrD+CpXVLlJA6yO09EO3Q0R75CksO4Uqw4vy0Z ssQEnMeJrwvE6bd0RNLfBqTuGr5eUsi1yuUJ9klK9dcqRTOMEEDeUkwUZljOmkun KqY8NAHGLAqJ6CYSxjxGjGGXM3POA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudegledgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuffhomhgrihhnpehpshihtghophhgrd horhhgpdhpohhsthhgrhgvshhqlhdqrghrtghhihhvvgdrohhrghenucfkphepjedurddv uddvrdduvdelrdduleefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 8E394328005A; Mon, 23 Mar 2020 20:50:47 -0400 (EDT) Subject: Re: Loading 500m json files to database To: pinker , pgsql-general@postgresql.org References: <1584959088557-0.post@n3.nabble.com> <7B61A925-5F3D-421C-949B-77B1EE026168@1nar.com.tr> <1468923B-049B-4EE6-A2BD-79650CC04149@n26.com> <1585009394522-0.post@n3.nabble.com> From: Adrian Klaver Message-ID: Date: Mon, 23 Mar 2020 17:50:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <1585009394522-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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