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 1fpRm3-0002Th-AJ for pgsql-admin@arkaria.postgresql.org; Tue, 14 Aug 2018 05:21: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 1fpRm0-00033s-Vn for pgsql-admin@arkaria.postgresql.org; Tue, 14 Aug 2018 05:21:40 +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 1fpRm0-00033j-OG for pgsql-admin@lists.postgresql.org; Tue, 14 Aug 2018 05:21:40 +0000 Received: from cat-porwal-prod-mail1.catalyst.net.nz ([202.78.240.226]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fpRlr-0002e0-Jk for pgsql-admin@lists.postgresql.org; Tue, 14 Aug 2018 05:21:39 +0000 Authentication-Results: auth=pass smtp.auth=mark.kirkwood@catalyst.net.nz smtp.mailfrom=mark.kirkwood@catalyst.net.nz Received: from [IPv6:2406:e001:d01:1:d869:bb2c:7e99:2ecb] (unknown [IPv6:2406:e001:d01:1:d869:bb2c:7e99:2ecb]) (Authenticated sender: mark.kirkwood@catalyst.net.nz) by cat-porwal-prod-mail1.catalyst.net.nz (Postfix) with ESMTPSA id 69BF880A20 for ; Tue, 14 Aug 2018 17:21:23 +1200 (NZST) Subject: Re: increase insert into local table from remote oracle table preformance To: pgsql-admin@lists.postgresql.org References: From: Mark Kirkwood Message-ID: <2e6e6255-d33f-dfc5-0470-b3adff075525@catalyst.net.nz> Date: Tue, 14 Aug 2018 17:21:23 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, we probably need more inforation to offer anything useful here, e.g: - The network bandwidth between the 2 hosts - the number of partitions on the Postgres end (i.e how many days in your case) - single or batched INSERT The lack of indexes is probably not going to effect INSERT performance that much, but the number of partition tables has a huge impact, so we need to know this stuff! Cheers Mark On 14/08/18 08:34, Mariel Cherkassky wrote: > Hi, > I'm using postgresql v10.4. I have a local partitioned table (by range > - data, every day has its own table). I'm using the oracle_fdw > extension to bring data from the oracle partitioned table into my > local postgresql (insert into local select * from remote_oracle). > Currently, I dont have any indexes on the postgresql`s table. It takes > me 10 hours to copy 200G over the network and it is very slow. > Any recommandations what can I change or improve ? > > > Thanks , Mariel.