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 1iXY4y-0003eP-5Z for pgsql-general@arkaria.postgresql.org; Wed, 20 Nov 2019 22:04:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iXY4w-0005mE-F6 for pgsql-general@arkaria.postgresql.org; Wed, 20 Nov 2019 22:04:02 +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 1iXY4w-0005m3-1q for pgsql-general@lists.postgresql.org; Wed, 20 Nov 2019 22:04:02 +0000 Received: from mailbackend.panix.com ([166.84.1.89]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iXY4p-0004lN-7Y for pgsql-general@lists.postgresql.org; Wed, 20 Nov 2019 22:04:00 +0000 Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 47JGtK6dCwz1wWX for ; Wed, 20 Nov 2019 17:03:53 -0500 (EST) Received: by panix2.panix.com (Postfix, from userid 17622) id 47JGtK4yRxz1ZW1; Wed, 20 Nov 2019 17:03:53 -0500 (EST) Date: Wed, 20 Nov 2019 17:03:53 -0500 From: stan To: pgsql-general@lists.postgresql.org Subject: Isolation of multiple databse instances provided by a single postgres server Message-ID: <20191120220353.GA24554@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: gVim User-Agent: Mutt/1.12.1 (2019-06-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I am working on a fairly small application to use for managing a companies business. I have a "production" instance hosted by one of the cloud providers, and 2 other instances. This is fairly new to me. In the past, I have created applications by keeping a set of scripts that can be used to rebuild the database, and pg_dump to restore the date. Based on some recommendations I am using pg_basebackup to backup the production instance nightly. My background is primarily Oracle. I realize looking at the way pg_basebackup works that multiple database instances, provided by one server are actually stored in the same physical OS files. We have traditionally (in the Postgres world) had a sandbox, that we used for upgrades, and testing development methodologies, and this seems to be supported pretty well by pg_dump. Now that I know "too much" I am concerned about hosting the sandbox on the same Postgres instance. Recognizing that this is a fairly small application, what are wiser folks than I recommendations? Should I run the sandbox from different Postgres server, possibly even on a different machine? Is pg_dump still good way to move the production instance to the sandbox, and perhaps even the other way around? -- "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin