Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wait, what? Explain please.

OK upon further thought, what you're saying is to use the pg_dump tool that comes with the pg version you are upgrading to.

I read it as "use pg_dump instead of pg_restore"...



Yes. Put concisely: Use the client tools from the newest version involved for all steps.


Isn't that impractical for most Linux distros? You'd need to manually install the new client.


On Debian (and probably most of its derivatives), the package manager will not remove any running PostgreSQL versions and will let you have multiple versions side by side. It also has its own tool pg_upgradecluster, which can perform the upgrade using pg_dump+pg_restore or pg_upgrade (optionally with link or clone options).


Probably? Certainly if you rely on distro packaging for it, yes.

I was just trying to simplify the guidance here. :)




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: