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 1fpe3H-0006jf-PQ for pgsql-general@arkaria.postgresql.org; Tue, 14 Aug 2018 18:28:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fpe3G-0006z2-5a for pgsql-general@arkaria.postgresql.org; Tue, 14 Aug 2018 18:28:18 +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.89) (envelope-from ) id 1fpe3F-0006yh-QH for pgsql-general@lists.postgresql.org; Tue, 14 Aug 2018 18:28:17 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fpe39-0000Dh-T0 for pgsql-general@lists.postgresql.org; Tue, 14 Aug 2018 18:28:16 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 10B561DF0; Tue, 14 Aug 2018 20:28:09 +0200 (CEST) Date: Tue, 14 Aug 2018 20:28:09 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Duplicating data folder without tablespace, for read access Message-ID: <20180814182809.2qjtc7oeyshdy4lr@hjp.at> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yojuab2uzm4gymmo" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --yojuab2uzm4gymmo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2018-08-14 11:57:38 -0400, Jack Cushman wrote: > I have a large database of text, with a 600GB table and a 100GB table con= nected > by a join table. They both see occasional updates throughout the week. On= ce a > week I want to "cut a release," meaning I will clone just the 100GB table= and > copy it to a "release" server for read-only web access. >=20 > My procedure would be: >=20 > - keep the 600GB table on a separate tablespace > - cleanly stop postgres on both servers > - copy the data folder to the release server > - delete pg_tblspc/* on the release server > - start postgres on both servers If you copy the whole database anyway before deleting the tablespace: Why don't you just drop the 600 GB table on the release server? hp --=20 _ | Peter J. Holzer | we build much bigger, better disasters now |_|_) | | because we have much more sophisticated | | | hjp@hjp.at | management tools. __/ | http://www.hjp.at/ | -- Ross Anderson --yojuab2uzm4gymmo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAltzHxgACgkQ8g5IURL+ KF3fOhAAl1emt1SVaNYoYnAEQmIveYOuCQJ6KSsgk+tDxT1FlaNmZbnHEtzCyB41 ZJKQuzWDToAmiGEA1IskKXMUGbqTf2KHUVNF+RDR1r6KcYh/3SvZel0mldSfz5Ri Hk6IjbSKSuxKw/BSEgoENNN6i2lwfEk7X6n97RPTSx+mGmloiawWgcE0jCZJJCgt aQplOGXIxloyyfTjXf8zvK7UbWZoYgu3nXExdGZu9pjtQkm3YnXgh4ZL1fJY8HO0 mVtg2FyCUTQUlz1J/en1koNNFUVJQXfwu9/qPZN4UZAkCNbP2N1qPjgQejJuJ08s QKJr9jMuW3hfBq5ETTRbGHWli0h1QvGtajBQfLBk86zV+YIWhUzdDLnFgLLRiyOn r4tODF+0MY6cGsT8kbKgcxVXcSF6GGsdFj1P1jMYta50ovzL+5X57cXfsPsWi1LO Sy1RYhZ+O5jdAedT1lPUSzeYrczqVUokcnvGghnPRJqpzF0tfNtQHYq8RgzLSGcd s/ROoKVyuJgZevwkJaYWTKlstnq2rX+M3p0RrZLMUJoDSy8HunQnoT7Ucl0sqozX SIQYWDYrr9imC1htMFwfRNk63mlp2PEkm8yui+2LLFurqV2MLOaGbSLIEdAf3+JG AWwRh+5uJHYV7thByDZqMxaCmVpipd6qh4N6p21x+pkpFAZ3Sos= =T32C -----END PGP SIGNATURE----- --yojuab2uzm4gymmo--