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 1hAybC-0008Nz-O2 for pgsql-general@arkaria.postgresql.org; Mon, 01 Apr 2019 15:11:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hAybB-000390-31 for pgsql-general@arkaria.postgresql.org; Mon, 01 Apr 2019 15:11:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hAybA-00038s-JT for pgsql-general@lists.postgresql.org; Mon, 01 Apr 2019 15:11:44 +0000 Received: from mail-oi1-x242.google.com ([2607:f8b0:4864:20::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hAyb7-0006AD-IL for pgsql-general@lists.postgresql.org; Mon, 01 Apr 2019 15:11:42 +0000 Received: by mail-oi1-x242.google.com with SMTP id j132so7564282oib.2 for ; Mon, 01 Apr 2019 08:11:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=z8RUoJ3LKYyJWbybhwt/1bO6IrKuFMW7NzqiNhtYMwM=; b=XJvJCP5YgHT7TD+MM/Ctt7NJIjIDDYvGtQ6IUy1QU0x9Fu9fa8iNasRdrKxu/4DEph 7C3v8sjbuXmDiLjPWMxK+OkhQ24kGmR34WTZ7uVKwY32pGMP+eWwu+iMN/QQk1t2azUz JwfBpN8fbUEwUOTIJRMqDFubnAu3BB/+X5DQ5OIEmsAd3lHco0RBonQuEzUx4D3gvys6 SmKTWph+uAxWp7xxb2S4ZHDN3DXKzqGUJdhfAeRFaw25aihE89jU8HPkaaqZtneWzgB/ tU5wTltFjaYadohZrnG/ftk5k8Z4L7nNjiIT15VqfUGo9AMUd56Ma9inG41JjhbrYxoI 1nQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=z8RUoJ3LKYyJWbybhwt/1bO6IrKuFMW7NzqiNhtYMwM=; b=tkFHzmrTI7VjG7pFKT40SrQc2qpslyFBgmYB9CXfmenSzejqw9VxdmSKep1IQOF49n dsihSsDQrYsyTPn9GNFprCxr08onc1hIGoLnXG7KihfOkINM2Em3zidjwfpkGnohgkZU fd246Wa7V5jUqybQnLouGPbMN7tyrxtxhMirUkBlM+Piy3TSMyaHEm+GdxYXjZRQc5Uk Zd0KuGuPuYZ/BZNSMUrkH3JNG7x1iqrqNPks0qD2DqE8TSVZDjzbKfwGUz12xICzdtHY Omrl9SAt3unr7Nrrh9mc7d/iquuMNeHlVXxQbtOaK3vRj1Y19Mj1teU1jEySUl5tMO0h CTpg== X-Gm-Message-State: APjAAAVNWJ8/omLXgRjngVFTBSxDGKyjwaOTJVzCawOQiFm3rLQdfgnP ee12CodMjBfDn0TY7zFdGW17yw5ogrY= X-Google-Smtp-Source: APXvYqwqQzgpS2vYllEnRGP3lUDH6SC/QE/wsh030XpKoGhXq09Kq4R0748iu0lPZe6i9YdziQgT+Q== X-Received: by 2002:aca:4b14:: with SMTP id y20mr12574601oia.95.1554131500146; Mon, 01 Apr 2019 08:11:40 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id j7sm4274273otr.50.2019.04.01.08.11.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 08:11:39 -0700 (PDT) Subject: Re: Table Export & Import To: pgsql-general@lists.postgresql.org References: <8c30a0f2-0b2c-ac4b-5d55-94bddda98441@aklaver.com> From: Ron Message-ID: <6039355a-c591-91f9-c1f7-336650f38ed3@gmail.com> Date: Mon, 1 Apr 2019 10:11:38 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------170891E9B14FC5808893EB4F" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------170891E9B14FC5808893EB4F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit /"so we need to stop our application until the export/import is completed."/ Why? On 4/1/19 9:47 AM, Sathish Kumar wrote: > Hi Adrian, > We are exporting live table data to a new database, so we need to stop our > application until the export/import is completed. We would like to > minimise this downtime. > > On Mon, Apr 1, 2019, 10:22 PM Adrian Klaver > wrote: > > On 3/31/19 11:09 PM, Sathish Kumar wrote: > > Hi Team, > > > > We have a requirement to copy a table from one database server to > > another database server. We are looking for a solution to achieve this > > with lesser downtime on Prod. Can you help us with this? > > So what is creating the downtime now? > > In addition to other suggestions you might want to take a look at: > > https://www.postgresql.org/docs/9.5/postgres-fdw.html > > > > > > Table Size: 160GB > > Postgresql Server Version: 9.5 > > > > > -- Angular momentum makes the world go 'round. --------------170891E9B14FC5808893EB4F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit "so we need to stop our application until the export/import is completed."

Why?

On 4/1/19 9:47 AM, Sathish Kumar wrote:
Hi Adrian,
We are exporting live table data to a new database, so we need to stop our application until the export/import is completed. We would like to minimise this downtime.

On Mon, Apr 1, 2019, 10:22 PM Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 3/31/19 11:09 PM, Sathish Kumar wrote:
> Hi Team,
>
> We have a requirement to copy a table from one database server to
> another database server. We are looking for a solution to achieve this
> with lesser downtime on Prod. Can you help us with this?

So what is creating the downtime now?

In addition to other suggestions you might want to take a look at:

https://www.postgresql.org/docs/9.5/postgres-fdw.html


>
> Table Size: 160GB
> Postgresql Server Version: 9.5
>
>

--
Angular momentum makes the world go 'round.
--------------170891E9B14FC5808893EB4F--