Re: upgrade and migrate

Michael Paquier <[email protected]>
Newsgroups gmane.comp.db.postgresql.general
Message-ID <[email protected]>
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?

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.
--
Michael
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl3nOqsACgkQnvQgOdby
QH0KEQ//bV/zmG9B98DEWUbgmsAVDVq2nMp1i52XPDRojcDktiP0uezqJL7HG3x9
4qeAhFkBy12gE6NqsRrwiitfFDZpx9HFtpdRmQd3yPlm9dwwS6/rysMFFxlmW8X0
XKBzLbH13E7EJgSCm+ek1RBqW4KoJH03dWelhd0e6FqaiWUaWyT97fYVumIW67Wd
RDMDSfqSsWQPllXvTyS05+jJ8chxjjHsxCquMcK74YOUwezrZ2QhK+Oe03hIizNN
/5oQzCYYfTObbpjGb1D7EQYZTmTFXl++y7SU7nu2IdaUreXqIny9An7/FJfjargq
vGIpQ6Jivvd/Jx7z7OO9zHTwEGNmEGO2qbEEstgwMXV1GD3G82ZJS3LhEVS7XkAe
Te1uzk4aNQ6FEVNMS7yZQjyJ825FWeLKSHWKGlrw6GbldpbfzoxOa0kcdpCYFfKv
eUS9fgzz+hLJ2v0zrpIqoF+N7RkxeBEZKTxGfoZ3HUgs/bKAvvCD3UmUm35vO4I4
94aorpbP+p3cDNohHBr1GkahHKS1RoZkjTpukTEEC7mwzZJBTQjTT5wSnArSBtz5
sXuykBNDGdtYXelItXTtBVniye7RITtQAZ/e/dNUM/pZcUt7e/RgrJg3jIv+ZrjQ
3fN8ovD7wRoX/XED1YN5Wai4d9+/q1hpkbBI29auZmZCowlMk3E=
=VxPF
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.