Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dheTM-0004D9-Nu for pgsql-performance@arkaria.postgresql.org; Tue, 15 Aug 2017 16:13:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dheTM-0000pc-3b for pgsql-performance@arkaria.postgresql.org; Tue, 15 Aug 2017 16:13:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dheTL-0000pS-EE for pgsql-performance@postgresql.org; Tue, 15 Aug 2017 16:13:39 +0000 Received: from mail-qt0-x230.google.com ([2607:f8b0:400d:c0d::230]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dheTE-0005oK-Dn for pgsql-performance@postgresql.org; Tue, 15 Aug 2017 16:13:37 +0000 Received: by mail-qt0-x230.google.com with SMTP id v29so6849957qtv.3 for ; Tue, 15 Aug 2017 09:13:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mjuF6HpGF4mr7KA1sNXZrmpjOpeooe7AOXwAIKNQC/s=; b=fwgUpusKyW5JD7Tcm/9kkOU6ivzmuIQuQ2EQR6At9ItxoJQEtU8WBDG3srOTl61wZC TxfGnY7DP9/CntL+Ih+HO9ihSuJ6NnnixGxEUTKbdsVzfzDD79PcfwbCltrKHB2mC+fa G8XohIF2TUzBsnOhmNfm5xiK4i/o2ROLV5nZE6VRdHuaEhDTWRGUB06ZHz6NevrDXpA+ EcE9Hj3WMzYaS3UI3g9XpcfseNBMSncNGV7XwOdrslcor4c68coTw0qCWvUQgJfsVIji hzDmrxkDt0L1bScx/jzMf3iqA2QfV5lkA/Secx78Lq1TYqnPpZHHgkI5yEGRzZATkZi6 3L1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mjuF6HpGF4mr7KA1sNXZrmpjOpeooe7AOXwAIKNQC/s=; b=keMU2Dc6gWH0A4db4RphLI7CP3I2p2Fzfd0f2nPJmZKwk2P7qq11ufRreLMIoDNQpL my1qMJXO26LONWcUMn9YJvTD4LzQWK2ZrzG7qSYKRuK2Hd2sTE+HwFZdVx3hFqlL0mbm FJ0CnJN2N2JeKTy1wtY1JJw6rU+ZivcV0XfgNH2YpBhtu1m6aYD3/ENaCF/4SESG14to EwyqjmJZ5iIxoHZLlFeGXHvOblFc6bcxbuoXAfsjvZpsx+afo+mbzINgLFAy3SF3HI5a eCAvqc9mTp5GC6laDH3i/WAjtVwsqFGHRlD2kfLAUT9fMX5uwI8wlAnfK/oiWhVofKXn Px+g== X-Gm-Message-State: AHYfb5iKjrQKfo6i9Yvsz3ROk8eIEb5E7O3PrlbMzLMkJlUKgnbdecTc IfHHr/+ykwDNhnIJMsiwu/HSYgMJMabU X-Received: by 10.200.2.172 with SMTP id p44mr39582885qtg.46.1502813611299; Tue, 15 Aug 2017 09:13:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.102.41 with HTTP; Tue, 15 Aug 2017 09:13:30 -0700 (PDT) In-Reply-To: References: From: Jeff Janes Date: Tue, 15 Aug 2017 09:13:30 -0700 Message-ID: Subject: Re: performance problem on big tables To: Mariel Cherkassky Cc: "pgsql-performance@postgresql.org" Content-Type: multipart/alternative; boundary="f4030435bd407718a70556cd0fd1" List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org --f4030435bd407718a70556cd0fd1 Content-Type: text/plain; charset="UTF-8" On Tue, Aug 15, 2017 at 3:06 AM, Mariel Cherkassky < mariel.cherkassky@gmail.com> wrote: > Hi, > So I I run the cheks that jeff mentioned : > \copy (select * from oracle_remote_table) to /tmp/tmp with binary - 1 hour > and 35 minutes > \copy local_postresql_table from /tmp/tmp with binary - Didnt run because > the remote oracle database is currently under maintenance work. > The "\copy...from" doesn't depend on oracle, it would be only depend on local file system (/tmp/tmp), provided that the "\copy...to" finished. Anyway, given the length of time it took, I think you can conclude the bottleneck is in oracle_fdw itself, or in Oracle, or the network. Cheers, Jeff --f4030435bd407718a70556cd0fd1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On T= ue, Aug 15, 2017 at 3:06 AM, Mariel Cherkassky <mariel.cherkassk= y@gmail.com> wrote:
Hi,
So I I run the cheks t= hat jeff mentioned : =C2=A0
\copy (select * from oracle_remote_table) to /tmp/tmp with binary - = 1 hour and 35 minutes
\copy local_post= resql_table from /tmp/tmp with binary - Didnt run because the remote oracle= database is currently under maintenance work.

The "\copy...from" doesn't depend on or= acle, it would be only depend on local file system (/tmp/tmp), provided tha= t the "\copy...to" finished.=C2=A0 Anyway, given the length of ti= me it took, I think you can conclude the bottleneck is in oracle_fdw itself= , or in Oracle, or the network.

Cheers,
=
Jeff
--f4030435bd407718a70556cd0fd1--