Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1frojR-00067R-DF for pgsql-general@arkaria.postgresql.org; Mon, 20 Aug 2018 18:16:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1frojP-00020C-C5 for pgsql-general@arkaria.postgresql.org; Mon, 20 Aug 2018 18:16:47 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1frojP-000205-0J for pgsql-general@lists.postgresql.org; Mon, 20 Aug 2018 18:16:47 +0000 Received: from sonic312-21.consmr.mail.bf2.yahoo.com ([74.6.128.83]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1frojL-0001oz-KA for pgsql-general@lists.postgresql.org; Mon, 20 Aug 2018 18:16:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1534789000; bh=5SYZ5w8tR+iPc8lXnPjd+3Ms1EBUCNcnRczdf2FapCA=; h=Date:From:Cc:Subject:References:From:Subject; b=e1NA9T1+KhfbgSTjRFjGTQ7txnoOSPrOWqK26eGhzC/Obh8S7034j97tyM2UtOFizhhAnZtSTSHVKLvHX2tVWPHFb/ZMW8eZrSC/5lPdbGsEZ5rQG3zrwND1/clC5deAIACkI114rwaOTFwo8SreXmNAyqoWaDrx+hIAtTUZv0XPggxgMGOCX9zNDQjlIp1uZh9KGpq9BMbuSCQUQ+cXYy3qOfzF+xORAvlZjCRrQUM3TjKXCf7STLIBSZDOzk7Lgs0Y/fuTnXCHxTQtaN1lJjOr7VYyBvLsvt56ryXNgykrf51aZ4hy6PvzpaAQqMM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Mon, 20 Aug 2018 18:16:40 +0000 Date: Mon, 20 Aug 2018 18:16:39 +0000 (UTC) From: Ravi Krishna Cc: pgsql-general@lists.postgresql.org Message-ID: <2004276149.10290709.1534788999308@mail.yahoo.com> Subject: Re: [External] Multiple COPY on the same table MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10290708_613903734.1534788999307" References: <2004276149.10290709.1534788999308.ref@mail.yahoo.com> X-Mailer: WebService/1.1.12206 aolwebmail Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 Content-Length: 1313 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_10290708_613903734.1534788999307 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 1. The tables has no indexes at the time of load.2.=C2=A0 The create table = and copy are in the same transaction. So I guess that's pretty much it.=C2=A0 I understand the long time it takes= as some of the tables have 400+ million rows.Also the env is a container a= nd since this is currently a POC system , not much time has been invested i= n fine tuning it. thanks all. ------=_Part_10290708_613903734.1534788999307 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
1. The tables has no indexes at the time of load.
2.  The create table and copy are in the same transaction.

So I guess that's pretty much it.  I understand the long time it takes as some of the tables have 400+ million rows.
Also the env is a container and since this is currently a POC system , not much time has been invested in fine tuning it.

thanks all.
------=_Part_10290708_613903734.1534788999307--