Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l3KfD-0007yQ-LM for pgsql-general@arkaria.postgresql.org; Sat, 23 Jan 2021 15:17:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l3KfC-0008Re-9G for pgsql-general@arkaria.postgresql.org; Sat, 23 Jan 2021 15:17:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l3KfA-0008RW-N0 for pgsql-general@lists.postgresql.org; Sat, 23 Jan 2021 15:17:20 +0000 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l3Kf7-0006Ix-Eg for pgsql-general@lists.postgresql.org; Sat, 23 Jan 2021 15:17:19 +0000 Received: by mail-oi1-x22a.google.com with SMTP id j25so4205475oii.0 for ; Sat, 23 Jan 2021 07:17:16 -0800 (PST) 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=GznQFefqahUT4GOQIjG8EH5vzQLru+7Pcs+xrqkUy9M=; b=GSwK+D8yVvESoWM1TKZHpDepUzZYpRMuGsIS4d5Rn0fuFRiF6Yzyy1VQLofP9UUeLe AsF/uxuaL7d715KdRgfj1hioNgy999tpjVLY+AnnwzLXuqElXL2N5QAA1K8S0LuJWnm4 PNZCzvh3NusQ7hgkAcS6ulUWGYlEKqYT31lmmnu1WLmAFy5/7ahybg+DQdz89vZZ2IEo xV0PJdLPi1BMPnhqBHDLHp5FMUSlR7VmI1K1L/kRFatjUaZr2H8BVRdq1PjSZ2lx4sjs QkkuX/iTGqQwUrlWo38FzTMUAEjkwWvMwYrkWnYXOIqvM3wv0LSp9NuCyBiQIhL1ZsWt 5chw== 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=GznQFefqahUT4GOQIjG8EH5vzQLru+7Pcs+xrqkUy9M=; b=OyxMNnTrE4fX5gzHxPGlrPuRsKDTswjaQXohBJCWLMwUu5CF2zt6lhwntCKBdUmbec FZ157OG51pTQFchx5E87cvAjTLVvHmul58nnCLVBXjvdMlOIh60B4gK5HgKzQrtcGm1m Wp6AQsivJ65hyGrzk4vUIDUW7hu5sqTeER9ku7sazi4Y6450/PXRm1j2v9WVgGF9dftJ 6t7nbnq00MY9xCPKIeysF4xJDOddN4p4MesPDmb2b27PdrI63VIECHCwB3t7IXcjYQRm xm5ZIKjjISJqGYIpKU1mj7wuz82QDcjzjPJwoysqZuvSdzkey6exXNBIaO7hY+3m2QR3 hfiA== X-Gm-Message-State: AOAM5315aSkdSp3kEXvR2InbzrO2yDpOi7wt1RykQE8fwr76WKfG9E65 mws1ijFMkFskS4HEgbUTFRAOfrZKMa4D7A== X-Google-Smtp-Source: ABdhPJyfMV2by6Fa6AZXZ9qRvFShbYW8AiWCA40f9seJbe8Qvl+Sj+zecHvyczRzRnIK6NheGHkACA== X-Received: by 2002:aca:ad92:: with SMTP id w140mr6526777oie.128.1611415035971; Sat, 23 Jan 2021 07:17:15 -0800 (PST) Received: from [192.168.88.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id e14sm206376oou.19.2021.01.23.07.17.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 23 Jan 2021 07:17:15 -0800 (PST) Subject: Re: Copy & Re-copy of DB To: pgsql-general@lists.postgresql.org References: <1776022013.3890342.1611234824367.ref@mail.yahoo.com> <1776022013.3890342.1611234824367@mail.yahoo.com> <00b51766-0fb1-6c6c-82c1-e08cf122e798@rodonnell.ie> <1829358841.3898628.1611237155653@mail.yahoo.com> <132794689.1264279.1611299517588@mail.yahoo.com> <20210122142132.GA10505@campbell-lange.net> <20210122155749.GA13685@campbell-lange.net> <1402129814.2072651.1611406363403@mail.yahoo.com> From: Ron Message-ID: <95187928-f291-6595-c26f-54faa37a67f9@gmail.com> Date: Sat, 23 Jan 2021 09:17:14 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1402129814.2072651.1611406363403@mail.yahoo.com> Content-Type: multipart/alternative; boundary="------------AD1362AD09D29B5FB3A6FBB8" 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. --------------AD1362AD09D29B5FB3A6FBB8 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 1/23/21 6:52 AM, sivapostgres@yahoo.com wrote: > We are an ISV.   I agree the risk involved in sharing the data.  Still few > of my customers need that facility and are accustomed to it when using SQL > Server.   On switch over to PG, I face this issue as a limitation. Need to > find and provide a solution. > > For those customers, having good volume of data, we're implementing > replication which resolves this issue.   For smaller sized database > (company(ies)), they prefer (and we too) this copy and re-copy procedure, > to transfer the data between home and office. > > And this pandemic made this a compulsory feature, which they don't want to > loose.  This transfer is not a one time job, it gets repeated, which they > have been doing for years.  Here security is not a big concern for them. > > Portability is the need for them. Sadly, the architecture of Postgres means that there's no concept of detaching *a single database*. If you only have one database in the "cluster" (ancient Postgres term for "instance"), then you can stop the cluster "-m smart", tar up data/, and transfer it across.  You'll need to have a directory on your dev server, custom postgresql.conf (that among other things uses a different port number) and pg_hba.conf files, TBH, tarring data/ isn't really necessary. > Happiness Always > BKR Sivaprakash > > On Friday, 22 January, 2021, 09:28:13 pm IST, Rory Campbell-Lange > wrote: > > > On 22/01/21, Benedict Holland (benedict.m.holland@gmail.com > ) wrote: > > > Sometimes it is easier to simply > replicate the existing bad process > > that a team agrees to rather than making > a better process. > > > As Alvar Aalto said in a lecture at MIT > >     It is not by temporary building that Parthenon comes on Acropolis. -- Angular momentum makes the world go 'round. --------------AD1362AD09D29B5FB3A6FBB8 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 1/23/21 6:52 AM, sivapostgres@yahoo.com wrote:
We are an ISV.   I agree the risk involved in sharing the data.  Still few of my customers need that facility and are accustomed to it when using SQL Server.   On switch over to PG, I face this issue as a limitation. Need to find and provide a solution.  

For those customers, having good volume of data, we're implementing replication which resolves this issue.   For smaller sized database (company(ies)), they prefer (and we too) this copy and re-copy procedure, to transfer the data between home and office.  

And this pandemic made this a compulsory feature, which they don't want to loose.  This transfer is not a one time job, it gets repeated, which they have been doing for years.  Here security is not a big concern for them.  

Portability is the need for them. 

Sadly, the architecture of Postgres means that there's no concept of detaching a single database. 

If you only have one database in the "cluster" (ancient Postgres term for "instance"), then you can stop the cluster "-m smart", tar up data/, and transfer it across.  You'll need to have a directory on your dev server, custom postgresql.conf (that among other things uses a different port number) and pg_hba.conf files,

TBH, tarring data/ isn't really necessary.

Happiness Always
BKR Sivaprakash

On Friday, 22 January, 2021, 09:28:13 pm IST, Rory Campbell-Lange <rory@campbell-lange.net> wrote:


On 22/01/21, Benedict Holland (benedict.m.holland@gmail.com) wrote:

> Sometimes it is easier to simply > replicate the existing bad process
> that a team agrees to rather than making > a better process.


As Alvar Aalto said in a lecture at MIT

    It is not by temporary building that Parthenon comes on Acropolis.

--
Angular momentum makes the world go 'round.
--------------AD1362AD09D29B5FB3A6FBB8--