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 1icUOS-0004jn-GX for pgsql-general@arkaria.postgresql.org; Wed, 04 Dec 2019 13:08:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1icUOQ-0004bz-Ru for pgsql-general@arkaria.postgresql.org; Wed, 04 Dec 2019 13:08:34 +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 1icUOQ-0004bq-Ds for pgsql-general@lists.postgresql.org; Wed, 04 Dec 2019 13:08:34 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1icUON-0008TE-Ev for pgsql-general@postgresql.org; Wed, 04 Dec 2019 13:08:32 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 379455F7A0; Wed, 4 Dec 2019 08:08:30 -0500 (EST) Date: Wed, 4 Dec 2019 08:08:30 -0500 From: Stephen Frost To: Laurenz Albe Cc: Michael Paquier , Julie Nishimura , "pgsql-general@lists.postgresql.org" , pgsql-general Subject: Re: upgrade and migrate Message-ID: <20191204130830.GF6962@tamriel.snowman.net> References: <20191204044843.GD2381@paquier.xyz> <1f2db9f0757d063bd185caa65b3ecf01e6a3ddcb.camel@cybertec.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="UKp86ReTCzTKDpOO" Content-Disposition: inline In-Reply-To: <1f2db9f0757d063bd185caa65b3ecf01e6a3ddcb.camel@cybertec.at> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --UKp86ReTCzTKDpOO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Laurenz Albe (laurenz.albe@cybertec.at) wrote: > On Wed, 2019-12-04 at 13:48 +0900, Michael Paquier wrote: > > On Tue, Dec 03, 2019 at 10:32:22PM +0000, Julie Nishimura wrote: > > > Hello, what is the best way to migrate from PostgreSQL 8.3.11 on > > > x86_64-redhat-linux-gnu to PostgreSQL 9.6.16 on x86_64-pc-linux-gnu > > > server, with minimal downtime? > > > The caveat is the source has about 80 databases overall almost 30 > > > TB. I could migrate the smallest ones (up to 1 tb) using pg_dump and > > > pg_restore, but the largest hot database is almost 17 tb, and I am > > > not sure how to approach this effort in a better and efficient way? > >=20 > > pg_upgrade could be one way to go here. That's not the scale pg_dump > > would be very good at. I would have personally avoided using pg_dump > > above 10~20GB. Depending on the downtime you are ready to accept, > > a migration based on Slony could be something to investigate. >=20 > Right, Slony is the way to go, since pg_upgrade doesn't support 8.3. >=20 > I would upgrade to a version more recent than 9.6. So... there's a bit of history here. pg_upgrade in 9.4 actually does support upgrading from 8.3.X. Support for upgrading from 8.3 was removed in 2209b3923a7afe0b6033ecfea972219df252ca8e. Thanks, Stephen --UKp86ReTCzTKDpOO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJd56/NAAoJEO1sijiDR2RVMqYQAIp7+/xfUIjqr2FHODFC9k2E cMc4MksTLwLoONoCGTzrxm+0h5HWkA9Rc4Z9A8z6H31J284y4HSxHHJKhMo5Bq3K Qhp3xE5DUqififduPgmv6WA9YBVYSz/FtavzhQjukJQu1fl1Bgz06nfPsV+atNJi qBGPheRS5npRlzbxj8yPH57WSYOyc4bw6jWSPaIw/2aJs17kOk93HGsV/hJ17HWB ClEEO1Eju3KNj5VGTbCAU2+fQQr/+T2B/AWhXgOQVhv0BP/zsSqf+655rPH1Vcpx taFLlhcYALpOfuLC+trtIjYSR2YQQNdGFxxTpUazjlWR83MI9fc6cgVXRPEAWaa+ TxQTuflmR2MKDCm9cS+xZnXU5alnS/SYqwS7hmb8iD/g5PQGdUy6G0AP83BDAcft 4kFlFMGA3ctXgkXKmny/7elXBAlIYvnQa1XNBFrQfUBFD8YA0WPAI/MdzblOhtbn QiJUZ1X8WgLOfyGdXWoZSnCeT2qZKLWSWZz4WRrUgPw0ooDtaE2qBo0EgUoHS5bh dSyRP6YD8OoPslGUte7wNjkqQYLqHybuzj+1RzTvuP07ox53Yaw1B9jKy1eoYyYl Cqd99+HzV9yzWD0lyKbmIytWMVcK5ldxZW5gpAp5Gdp3ywRFsyeVS96aCjMcJHyC +1MINT9bm7IM3SW/RP2I =4ngq -----END PGP SIGNATURE----- --UKp86ReTCzTKDpOO--